Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit a61db69

Browse files
committed
debugging nginx proxy for flower
1 parent 6c88c10 commit a61db69

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

nginx/flowerproxy/proxy.conf

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1+
# server {
2+
# listen 80;
3+
# charset utf-8;
4+
5+
# location /flower/ {
6+
# rewrite ^/flower/(.*)$ /$1 break;
7+
# proxy_pass http://localhost:5555;
8+
# proxy_set_header Host $host;
9+
# proxy_redirect off;
10+
# proxy_http_version 1.1;
11+
# proxy_set_header Upgrade $http_upgrade;
12+
# proxy_set_header Connection "upgrade";
13+
# }
14+
# }
15+
16+
117
server {
218
listen 80;
319
charset utf-8;
420

521
location /flower/ {
6-
rewrite ^/flower/(.*)$ /$1 break;
7-
proxy_pass http://localhost:5555;
8-
proxy_set_header Host $host;
9-
proxy_redirect off;
10-
proxy_http_version 1.1;
11-
proxy_set_header Upgrade $http_upgrade;
12-
proxy_set_header Connection "upgrade";
22+
return 200 'Test';
23+
add_header Content-Type text/plain;
24+
}
25+
26+
location /flower/test {
27+
return 200 'Testing';
28+
add_header Content-Type text/plain;
1329
}
14-
}
30+
}

0 commit comments

Comments
 (0)