Skip to content

Commit

Permalink
Revert "Ngnix rule for mistral_api redirect"
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmi-kannan committed Feb 5, 2016
1 parent d366c28 commit 9c64d66
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions conf/nginx/st2.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# nginx configuration to expose st2 webui, redirect HTTP->HTTPS,
#
# nginx configuration to expose st2 webui, redirect HTTP->HTTPS,
# provide SSL termination, and reverse-proxy st2api and st2auth API endpoint.
# To enable:
# To enable:
# cp ${LOCATION}/st2.conf /etc/nginx/sites-available
# ln -l /etc/nginx/sites-available/st2.conf /etc/nginx/sites-enabled/st2.conf
# see https://docs.stackstorm.com/install.html for details
Expand Down Expand Up @@ -62,25 +62,6 @@ server {
proxy_set_header Host $host;
}

location /mistral_api/ {
rewrite ^/mistral_api/(.*) /$1 break;

proxy_pass http://127.0.0.1:8989/;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_redirect off;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Connection '';
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
proxy_set_header Host $host;
}

location /auth/ {
rewrite ^/auth/(.*) /$1 break;

Expand Down

0 comments on commit 9c64d66

Please sign in to comment.