Add Docker + Gitea Actions auto-deploy to /opt/ttvfx_web
Deploy / deploy (push) Failing after 1s

Matches the vfxreview/xbid setup: runner pulls and runs docker compose;
nginx:alpine serves the static export on the npm_default network behind
Nginx Proxy Manager. DEPLOY.md has the one-time SSH setup steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-10-05 20:09:15 +02:00
parent 829d415324
commit 1756decda8
6 changed files with 212 additions and 65 deletions
+30
View File
@@ -0,0 +1,30 @@
# Serves the Next.js static export. TLS and the public hostname are handled
# by Nginx Proxy Manager in front of this container.
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
# Behind a TLS proxy: keep redirects relative so they stay on https
absolute_redirect off;
# Pages are exported as folder/index.html (trailingSlash: true)
location / {
try_files $uri $uri/ $uri.html =404;
}
# Content-hashed build assets never change
location /_next/static/ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
# Video and images: cache for a week (nginx handles range requests)
location ~* \.(mp4|jpg|jpeg|png|webp|svg)$ {
add_header Cache-Control "public, max-age=604800";
}
error_page 404 /404.html;
gzip on;
gzip_types text/css application/javascript image/svg+xml application/json text/plain application/xml;
}