Skip to content

Commit

Permalink
chore: add route to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
muchasxmaracas committed Jan 11, 2025
1 parent 3876359 commit 69562a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion deploy/webserver/default-dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ server {
proxy_read_timeout 200s;

location / {
root /usr/share/nginx/html/browser/home;
root /usr/share/nginx/html/browser/;
include /etc/nginx/mime.types;
add_header Cache-Control "public, max-age=1M";
try_files $uri $uri/ /index.html =404;
}

location /dates {
root /usr/share/nginx/html/browser/dates;
include /etc/nginx/mime.types;
add_header Cache-Control "public, max-age=1M";
try_files $uri $uri/ /index.html =404;
Expand Down
9 changes: 8 additions & 1 deletion deploy/webserver/default-test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ server {
proxy_read_timeout 200s;

location / {
root /usr/share/nginx/html/browser/home;
root /usr/share/nginx/html/browser/app;
include /etc/nginx/mime.types;
add_header Cache-Control "public, max-age=1M";
try_files $uri $uri/ /index.html =404;
}

location /dates {
root /usr/share/nginx/html/browser/dates;
include /etc/nginx/mime.types;
add_header Cache-Control "public, max-age=1M";
try_files $uri $uri/ /index.html =404;
Expand Down

0 comments on commit 69562a3

Please sign in to comment.