feat(docker): nginx static-export image + Dokploy compose with env-driven PORT/origin

- Dockerfile: nginx:1.27-alpine serving the exported site, PORT from env,
  /healthz healthcheck, origin rewrite hook in docker-entrypoint.d
- docker/default.conf.template: envsubst PORT, clean URLs without trailing-slash
  redirect, long cache for hashed assets, no-cache for HTML/sw.js/manifest,
  301 http->https via X-Forwarded-Proto, gzip
- docker/security-headers.conf: single include so add_header survives per location
- docker-compose.yml (Dokploy, no host ports) + docker-compose.override.yml (local)
- bake canonical/OG/sitemap/robots origin to https://alterflixhub.hobbypj.com
  (was the export-time 127.0.0.1:8090), overridable via PUBLIC_ORIGIN
- docs/deploy-dokploy.md
This commit is contained in:
Bkk1234 committed 2026-11-22 22:48:12 +07:00
1 parent f6b5ba112b
commit ae34597847
44 files changed
+416 -136

No files matched your search

+1 -1
View File
@@ -91,4 +91,4 @@ Disallow: /
User-agent: YouBot
Disallow: /
Sitemap: http://127.0.0.1:8090/sitemap.xml
Sitemap: https://alterflixhub.hobbypj.com/sitemap.xml