Skip to content

Commit

Permalink
[nginx] /demo redirection needed for fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaciasc committed Nov 6, 2023
1 parent 036708c commit fc0d1c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions sysadmin/configs/nginx/default-docker
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ server {
# If you want to see the value of a variable, the easiest way is
# adding a header like the example below
# add_header X-debug-message "$host" always;
rewrite ^/(.*) /core/$1 break;
proxy_pass http://$host:8080;
}

Expand Down
2 changes: 1 addition & 1 deletion sysadmin/configs/nginx/default-integration
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ server {
location /demo/ {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.passwd/integration;
resolver 127.0.0.1;
rewrite ^/(.*) /core/$1 break;
proxy_pass http://$host:8080;
}

Expand Down
1 change: 1 addition & 0 deletions sysadmin/configs/nginx/default-local
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ server {
# adding a header like the example below
# add_header X-debug-message "$host" always;
add_header X-Frame-Options SAMEORIGIN always;
rewrite ^/(.*) /core/$1 break;
proxy_pass http://$host:8080;
}

Expand Down
2 changes: 1 addition & 1 deletion sysadmin/configs/nginx/default-prod
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ server {

# DEMO INDEX FROM CORE
location /demo/ {
resolver 127.0.0.1;
rewrite ^/(.*) /core/$1 break;
proxy_pass http://$host:8080;
}

Expand Down

0 comments on commit fc0d1c3

Please sign in to comment.