Skip to content

Commit

Permalink
nginx update
Browse files Browse the repository at this point in the history
  • Loading branch information
popenc committed Nov 16, 2023
1 parent 57f064e commit 5518fd6
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ server {

server_tokens off;

location /cts/pkasolver/data {
# rewrite ^/pkasolver/(.*)$ $1 break;
proxy_pass http://cts-pkasolver:8080/pkasolver/data;
}

# Route for old static files
location /cts/static_qed/ {
alias /src/collected_static/;
Expand Down Expand Up @@ -70,19 +75,3 @@ server {
}

}

server {
listen 80;

location /pkasolver/ {
rewrite ^/pkasolver/(.*)$ $1 break;
proxy_pass http://cts-pkasolver:8080;
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_redirect off;
}



}

0 comments on commit 5518fd6

Please sign in to comment.