chore(docs): Update nginx example config

This tweak in nginx example should make all
request made by immich web app go through SSL
by default, not requiring other ports than 443
opened to outboud connections.
This commit is contained in:
PetrSvirak 2024-09-28 10:40:26 +02:00
parent 995f0fda47
commit a396f16e64

View File

@ -18,10 +18,11 @@ server {
client_max_body_size 50000M;
# Set headers
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
# enable websockets: http://nginx.org/en/docs/http/websocket.html
proxy_http_version 1.1;