Skip to content

Commit

Permalink
#110: nginx update
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Jan 22, 2024
1 parent fa26a31 commit 52e9d84
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions SwiftParcel.Web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ http {
# Location of your React app's static files
root /usr/share/nginx/html;

location /SaintAngeLs/courier_app/ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /SaintAngeLs/courier_app/index.html;
# Main location for the app
location / {
try_files $uri $uri/ /index.html;
}

location /SaintAngeLs/courier_app/static/ {
# Location for static files (CSS, JS)
location /static/ {
alias /usr/share/nginx/html/static/;
expires 30d;
access_log off;
add_header Cache-Control "public";
}

# Custom error page
error_page 404 /index.html;
}
}

0 comments on commit 52e9d84

Please sign in to comment.