Skip to content

Commit

Permalink
Remove geonode from nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Sutton committed May 27, 2021
1 parent cf3b1c4 commit 500b60a
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions nginx_conf/nginx.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -194,40 +194,6 @@ http {
# proxy_set_header X-Forwarded-Proto $scheme;

}
#######################################################
#
# GeoNode Related Configs
#
# Based on https://github.com/GeoNode/nginx-docker/blob/master/nginx.conf
#
#######################################################

location /geonode/static {
# Mounted from docker volume
root /var/www/geonode-static;
}
location /geonode {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, OPTIONS";
add_header Access-Control-Allow-Headers "Authorization, Content-Type, Accept";
add_header Access-Control-Allow-Credentials true;
add_header Content-Length 0;
add_header Content-Type text/plain;
add_header Access-Control-Max-Age 1728000;
return 200;
}
try_files $uri @django;
}

location @django {
include uwsgi_params;
uwsgi_pass uwsgi://geonode:8000;

add_header Access-Control-Allow-Credentials false;
add_header Access-Control-Allow-Headers "Content-Type, Accept, Authorization, Origin, User-Agent";
add_header Access-Control-Allow-Methods "GET, POST, PUT, PATCH, OPTIONS";
}


############################################################

Expand Down

0 comments on commit 500b60a

Please sign in to comment.