Skip to content

Commit

Permalink
update: add locations to container nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
muchasxmaracas committed May 21, 2024
1 parent 277b1f6 commit 36f071f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion deploy/webserver/container/default.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server {
listen 80;
listen 8081;
server_name _;

gzip on;
Expand All @@ -20,6 +20,27 @@ server {
try_files $uri $uri/ /index.html =404;
}

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

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

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

location /healthcheck {
access_log off;
add_header 'Content-Type' 'text/plain';
Expand Down

0 comments on commit 36f071f

Please sign in to comment.