mirror of
https://github.com/immich-app/immich.git
synced 2025-07-08 02:36:40 -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
@ -22,6 +22,7 @@ server {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
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
|
# enable websockets: http://nginx.org/en/docs/http/websocket.html
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user