File tree Expand file tree Collapse file tree 1 file changed +37
-1
lines changed
Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,40 @@ labels:
1818 - "traefik.docker.network=traefik_web"
1919```
2020Start your Docker Compose and navigate to your "persistent storage" and
21- change the .env search for FORCE_HTTPS=false (line 85) and set this to "true"
21+ change the .env search for FORCE_HTTPS=false (line 85) and set this to "true"
22+
23+ ## Nginx
24+ Make sure to use HTTPS to access your container to avoid mixed content errors
25+ ```
26+ server {
27+ listen 443 ssl;
28+ listen [::]:443 ssl;
29+ listen 80;
30+ listen [::]:80;
31+ server_name your.domain.name;
32+
33+ location / {
34+ # Replace with the IP address and port number of your Docker container.
35+ proxy_pass https://127.0.0.1:443;
36+ proxy_set_header Host $host;
37+ proxy_set_header X-Real-IP $remote_addr;
38+
39+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
40+ proxy_set_header X-Forwarded-Proto https;
41+ proxy_set_header X-VerifiedViaNginx yes;
42+ proxy_read_timeout 60;
43+ proxy_connect_timeout 60;
44+ proxy_redirect off;
45+
46+ # Specific for websockets: force the use of HTTP/1.1 and set the Upgrade header
47+ proxy_http_version 1.1;
48+ proxy_set_header Upgrade $http_upgrade;
49+ proxy_set_header Connection 'upgrade';
50+ proxy_cache_bypass $http_upgrade;
51+ proxy_set_header X-Forwarded-Proto $scheme;
52+
53+ # Fixes Mixed Content errors.
54+ add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
55+ }
56+ }
57+ ```
You can’t perform that action at this time.
0 commit comments