Ostatnio aktywny 1 month ago

Erreur32's Avatar Erreur32 zrewidował ten Gist 9 months ago. Przejdź do rewizji

1 file changed, 1 insertion, 1 deletion

portainer_proxy_nginx.conf

@@ -33,5 +33,5 @@ location / {
33 33 sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="https://theme.myoueb.fr/css/base/portainer/space-gray.css"></head>';
34 34
35 35 # Tracker JS Umami
36 - sub_filter '</body>' '<script async defer data-website-id="3fa604ed-8986-4424-85a7-729b9ef87007" src="https://way.myoueb.fr/script.js"></script></body>';
36 + sub_filter '</body>' '<script async defer data-website-id="3f04ed-896-424-5a7-9b9ef87007" src="https://way.myoueb.fr/script.js"></script></body>';
37 37 }

Erreur32's Avatar Erreur32 zrewidował ten Gist 9 months ago. Przejdź do rewizji

1 file changed, 37 insertions

portainer_proxy_nginx.conf(stworzono plik)

@@ -0,0 +1,37 @@
1 + # === Portainer via Nginx Proxy Manager ===
2 +
3 + location / {
4 + # === Backend Portainer ===
5 + proxy_pass http://192.168.1.150:9010/;
6 +
7 + # Headers classiques
8 + proxy_set_header Host $host;
9 + proxy_set_header X-Real-IP $remote_addr;
10 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
11 + proxy_set_header X-Forwarded-Proto $scheme;
12 +
13 + # Supprimer protections anti-iframe de Portainer
14 + proxy_hide_header X-Frame-Options;
15 + proxy_hide_header Content-Security-Policy;
16 + add_header X-Frame-Options "ALLOWALL";
17 + add_header Content-Security-Policy "frame-ancestors *" always;
18 +
19 + # Support du sous-chemin / proxy
20 + proxy_set_header X-Portainer-Base-Url /;
21 +
22 + # WebSocket Portainer
23 + proxy_http_version 1.1;
24 + proxy_set_header Upgrade $http_upgrade;
25 + proxy_set_header Connection "upgrade";
26 + proxy_read_timeout 86400;
27 + proxy_send_timeout 86400;
28 + proxy_buffering off;
29 +
30 + # Subfilter pour thème custom
31 + proxy_set_header Accept-Encoding "";
32 + sub_filter_once on;
33 + sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="https://theme.myoueb.fr/css/base/portainer/space-gray.css"></head>';
34 +
35 + # Tracker JS Umami
36 + sub_filter '</body>' '<script async defer data-website-id="3fa604ed-8986-4424-85a7-729b9ef87007" src="https://way.myoueb.fr/script.js"></script></body>';
37 + }
Nowsze Starsze