Skip to content

Commit

Permalink
Update default.conf (CardSorter#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkyriakou23 authored Nov 21, 2023
1 parent 9c35b29 commit 5187486
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ server {
root /usr/share/nginx/html;
try_files $uri /sort/index.html; # React router
}

location / {
location / {
root /usr/share/nginx/html/designer;
try_files $uri /index.html; # React router
}
}

server {
# Reverse proxy for the server
listen 8500;

location / {
location /api {
rewrite ^/api(.*)$ $1 break;
try_files $uri @proxy_to_app;
}

Expand All @@ -39,6 +34,5 @@ server {
proxy_redirect off;
proxy_pass http://app_server;
}
}

}

0 comments on commit 5187486

Please sign in to comment.