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

+28
View File
@@ -0,0 +1,28 @@
# ไฟล์ที่ไม่ต้องส่งเข้า build context / image
.git
.gitignore
.github
Dockerfile
docker-compose.yml
docker-compose.override.yml
.dockerignore
*.md
docs
.env
.env.*
!.env.example
node_modules
.output
build
dist
static-export
coverage
*.log
*.bak
*.bak-*
*.orig
*.tmp
probe-*
.DS_Store
Thumbs.db
desktop.ini