File tree Expand file tree Collapse file tree 3 files changed +21
-38
lines changed Expand file tree Collapse file tree 3 files changed +21
-38
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -31,6 +31,27 @@ server {
3131 proxy_pass http://regweb:8080/regweb/;
3232 include /etc/nginx/conf.d/proxy-settings.conf;
3333 }
34+
35+ # see https://portainer.readthedocs.io/en/stable/faq.html#how-can-i-configure-my-reverse-proxy-to-serve-portainer
36+ location ^~/portainer/ {
37+ proxy_http_version 1.1;
38+ proxy_set_header Connection "";
39+ proxy_pass http://portainer:9000/;
40+ include /etc/nginx/conf.d/proxy-settings.conf;
41+ }
42+
43+ # this is for docker exec with portainer and reverse-proxy
44+ location ^~/portainer/api/websocket/ {
45+ proxy_set_header Upgrade $http_upgrade;
46+ proxy_set_header Connection "upgrade";
47+ proxy_http_version 1.1;
48+ proxy_pass http://portainer:9000/api/websocket/;
49+
50+
51+ include /etc/nginx/conf.d/proxy-settings.conf;
52+ }
53+
54+
3455
3556 # Same like sonar.web.context=/sonar in preconfig/sonar/sonar.properties
3657 location ^~/sonar {
You can’t perform that action at this time.
0 commit comments