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:
1 parent
f6b5ba112b
commit
ae34597847
44 files changed
+416
-136
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# รันในเครื่อง (preview) — compose โหลดไฟล์นี้อัตโนมัติเมื่อเรียก `docker compose up` เฉย ๆ
|
||||
# Dokploy เรียก `-f ./docker-compose.yml` ตรง ๆ → ไม่โหลดไฟล์นี้ (พอร์ตบน server จึงไม่ชน)
|
||||
# เปิดที่ http://127.0.0.1:<HOST_PORT>/ (ผูก 127.0.0.1 เท่านั้น ไม่เปิดออกวงแลน)
|
||||
|
||||
services:
|
||||
web:
|
||||
ports:
|
||||
- "127.0.0.1:${HOST_PORT:-30004}:${PORT:-30004}"
|
||||
Reference in new issue
Block a user