From 500b60ab4d8ad7a72cb90c8cd8c5d32a024ba9d3 Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Thu, 27 May 2021 23:44:20 +0100 Subject: [PATCH] Remove geonode from nginx conf --- nginx_conf/nginx.conf.example | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/nginx_conf/nginx.conf.example b/nginx_conf/nginx.conf.example index e8142abc..b869fe51 100644 --- a/nginx_conf/nginx.conf.example +++ b/nginx_conf/nginx.conf.example @@ -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"; - } - ############################################################