mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 10:17:05 -04:00
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:
parent
995f0fda47
commit
a396f16e64
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user