Skip to content

Commit 1821565

Browse files
committed
Simplify and remove other settings
1 parent 375cdc8 commit 1821565

File tree

3 files changed

+21
-38
lines changed

3 files changed

+21
-38
lines changed

nginx-reverse/reverse-proxy-micro.conf

Lines changed: 0 additions & 10 deletions
This file was deleted.

nginx-reverse/reverse-proxy-min.conf

Lines changed: 0 additions & 28 deletions
This file was deleted.

nginx-reverse/reverse-proxy.conf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)