Skip to content

Commit

Permalink
correct proxY
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablito2020 committed Oct 10, 2023
1 parent 8ca30f9 commit ae3fedb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ http {

# API route
location /api {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^/api/(.*) /$1 break;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8000;
# proxy_pass http://127.0.0.1:8000;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;
# proxy_http_version 1.1;
}

# Root route
Expand Down

0 comments on commit ae3fedb

Please sign in to comment.