Skip to content

Commit

Permalink
infra: try rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jun 6, 2024
1 parent 8a0574d commit 998b2cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infrastructure/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ server {
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;

location /api/ {
proxy_pass http://backend.app.sfscon.testingmachine.eu/api/;
location /api {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://backend.app.sfscon.testingmachine.eu;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location / {
Expand Down

0 comments on commit 998b2cd

Please sign in to comment.