-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring a Reverse proxy for geonode installation #4113
Comments
Hi @sandeepgadhwal
e.g.:
NGINX
UWSGI.ini
|
Thank you very much i will try this and try to put up a documentation.
[image: photo]
*Sandeep Kumar*
Gis Freelancer, Urban Talks
+91 9494 297947 | Sandeepgadhwal1@gmail.com | urbantalks.in |
Skype: sandeepgadhwal1
<http://facebook.com/sandeep65>
<http://us.linkedin.com/in/sandeep-kumar-49b076ab>
<http://github.com/sandeepgadhwal>
<http://upwork.com/fl/~013d38246be72bec66>
Please consider your environmental responsibility. Before printing this
e-mail message, ask yourself whether you really need a hard copy.
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
12/10/18,
9:58:15 PM
…On Mon, Dec 10, 2018 at 7:50 PM Alessio Fabiani ***@***.***> wrote:
hi @sandeepgadhwal <https://github.com/sandeepgadhwal>
in order to deploy GeoNode on a sub-path you will need to do the following:
1. Update the variables on settings (or local_settings) by putting in
there the full path
e.g.:
SITEURL = 'http://<my_ip_or_domain>/sdi/'
FORCE_SCRIPT_NAME = '/sdi'
MEDIA_URL = '/sdi/uploaded/'
STATIC_URL = '/sdi/static/'
LOGIN_URL = os.getenv('LOGIN_URL', '{}account/login/'.format(SITEURL))
LOGOUT_URL = os.getenv('LOGOUT_URL', '{}account/logout/'.format(SITEURL))
ACCOUNT_LOGIN_REDIRECT_URL = os.getenv('LOGIN_REDIRECT_URL', SITEURL)
ACCOUNT_LOGOUT_REDIRECT_URL = os.getenv('LOGOUT_REDIRECT_URL', SITEURL)
1. Use NGINX HTTPD Server (Apache HTTPD won't work unfortunately) by
configuring UWSGI as following:
NGINX
```
location /sdi {
etag off;
uwsgi_pass 127.0.0.1:8000;
uwsgi_param UWSGI_SCRIPT sdi;
uwsgi_read_timeout 600s;
include uwsgi_params;
}
location /sdi/static/ {
alias /full_path_to/static_root/;
}
location /sdi/uploaded/ {
alias /full_path_to/uploaded/;
}
UWSGI.ini
[uwsgi]
socket = 0.0.0.0:8000
uid = ****
gid = ****
plugins = python
virtualenv = /full_path_to_venv
geonode.settings or geonode.local_settings depending on your setup
env = DJANGO_SETTINGS_MODULE=geonode.settings
chdir = /full_path_to_geonode_src_code
mount = /sdi=/full_path_to_geonode_src_code/wsgi.py
manage-script-name = true
processes = 2
threads = 3
enable-threads = true
master = true
touch-reload = /full_path_to_geonode_src_code/wsgi.py
buffer-size = 32768
vacuum = true
thunder-lock = true
3. Make sure the GeoServer REST Role Service is specifying the correct endpoints
![image](https://user-images.githubusercontent.com/1278021/49738134-ea399d00-fc8e-11e8-9431-8d50196475f5.png)
![image](https://user-images.githubusercontent.com/1278021/49738145-f32a6e80-fc8e-11e8-9c69-af4fed6fa618.png)
![image](https://user-images.githubusercontent.com/1278021/49738195-10f7d380-fc8f-11e8-83a0-56bd445115b0.png)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4113 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARpk2KhBegMTxvm3YiAOMzYm7s476Km0ks5u3m2bgaJpZM4ZLT8L>
.
|
Nice this should find it´s way into docs. |
It looks this is resolved by the comment of @afabiani closing here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello everyone i have setuped geonode 2.8 on an ubuntu 16.04 machine in my lan network and updated the same in geonode config also by using command geonode-upateip. I have a reverse proxy server that hosts other servers on public ip at designated subfolders, i tried to configure this sdi also but it fails for some reason and geonode is not able to detect the folder and hits for assets at top level domain only my code is :-
problem is it is hitting
http://domain/static/lib/css/assets.min.css?v=2.8
instead of
http://domain/sdi/static/lib/css/assets.min.css?v=2.8
can anyone help
The text was updated successfully, but these errors were encountered: