Skip to content

Commit 44a7e8a

Browse files
Merge pull request #2470 from StackStorm/revert-2469-v1.3
Revert "Ngnix rule for mistral_api redirect"
2 parents d366c28 + 9c64d66 commit 44a7e8a

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

conf/nginx/st2.conf

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#
2-
# nginx configuration to expose st2 webui, redirect HTTP->HTTPS,
1+
#
2+
# nginx configuration to expose st2 webui, redirect HTTP->HTTPS,
33
# provide SSL termination, and reverse-proxy st2api and st2auth API endpoint.
4-
# To enable:
4+
# To enable:
55
# cp ${LOCATION}/st2.conf /etc/nginx/sites-available
66
# ln -l /etc/nginx/sites-available/st2.conf /etc/nginx/sites-enabled/st2.conf
77
# see https://docs.stackstorm.com/install.html for details
@@ -62,25 +62,6 @@ server {
6262
proxy_set_header Host $host;
6363
}
6464

65-
location /mistral_api/ {
66-
rewrite ^/mistral_api/(.*) /$1 break;
67-
68-
proxy_pass http://127.0.0.1:8989/;
69-
proxy_read_timeout 90;
70-
proxy_connect_timeout 90;
71-
proxy_redirect off;
72-
73-
proxy_set_header Host $host;
74-
proxy_set_header X-Real-IP $remote_addr;
75-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
76-
77-
proxy_set_header Connection '';
78-
chunked_transfer_encoding off;
79-
proxy_buffering off;
80-
proxy_cache off;
81-
proxy_set_header Host $host;
82-
}
83-
8465
location /auth/ {
8566
rewrite ^/auth/(.*) /$1 break;
8667

0 commit comments

Comments
 (0)