Skip to content

Commit

Permalink
fix: update nginx (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSamuel authored Sep 29, 2024
1 parent ccb939f commit 1c3da77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ upstream backend {
server backend:80;
}

upstream docs {
server docs:80;
}

server {
listen 80;
listen [::]:80;
Expand All @@ -17,6 +21,10 @@ server {
proxy_pass http://frontend/;
}

location /docs/ {
proxy_pass http://docs/;
}

location /static/ {
add_header Cache-Control "max-age = 31536000";
}
Expand Down

0 comments on commit 1c3da77

Please sign in to comment.