diff --git a/crisiscleanup/etc/nginx/sites-available/crisiscleanup b/crisiscleanup/etc/nginx/sites-available/crisiscleanup index a7594c4..2aebf10 100644 --- a/crisiscleanup/etc/nginx/sites-available/crisiscleanup +++ b/crisiscleanup/etc/nginx/sites-available/crisiscleanup @@ -6,17 +6,12 @@ server { error_log /var/log/nginx/crisiscleanup.error.log; root /srv/crisiscleanup/public; - try_files $uri/index.html $uri @app; + try_files $uri/index.html $uri @crisiscleanup; - location @app { + location @crisiscleanup { proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-Proto https; - proxy_set_header Host $http_host; - proxy_set_header Proxy ""; - proxy_redirect off; - proxy_buffering off; - proxy_read_timeout 90; - proxy_connect_timeout 90; proxy_pass http://127.0.0.1:3000; } diff --git a/gnuhealth/etc/nginx/sites-available/gnuhealth b/gnuhealth/etc/nginx/sites-available/gnuhealth index 7908ad4..5e0b065 100644 --- a/gnuhealth/etc/nginx/sites-available/gnuhealth +++ b/gnuhealth/etc/nginx/sites-available/gnuhealth @@ -6,17 +6,12 @@ server { error_log /var/log/nginx/gnuhealth.error.log; root /srv/gnuhealth/sao; - try_files $uri @app; + try_files $uri @gnuhealth; - location @app { + location @gnuhealth { proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-Proto https; - proxy_set_header Host $http_host; - proxy_set_header Proxy ""; - proxy_redirect off; - proxy_buffering off; - proxy_read_timeout 90; - proxy_connect_timeout 90; proxy_pass http://127.0.0.1:8097; } }