Files
timothykim.net/nginx.conf
T
timothykim 482dcec7f2
Build and Push Docker Image / build (push) Failing after 6s
add watchtower deploy step and nginx proxy for update endpoint
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 18:09:05 -04:00

22 lines
461 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# Clean URLs — serve index.html for directories
location / {
try_files $uri $uri/ /index.html;
}
location /watchtower/ {
proxy_pass http://watchtower:8080/;
}
# Cache static assets aggressively
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}