This commit is contained in:
miles committed 2026-11-09 17:25:42 -06:00
1 parent c250653961
commit f26fdd9d07
18 files changed
+493 -83

No files matched your search

+13 -10
View File
@@ -15,13 +15,16 @@ NODE_ENV=production
HOST=127.0.0.1
PORT=8787
# The canonical browser origin. Also used as the default CORS origin.
PUBLIC_ORIGIN=https://milesallen.site
# The public API origin (the Cloudflare Tunnel hostname for this Node app).
# The static site can stay on https://milesallen.site and call this origin.
PUBLIC_ORIGIN=https://api.milesallen.site
# Extra cross-origin origins, comma-separated. https://milesallen.site and
# https://www.milesallen.site are always allowed. Same-origin requests from the
# browser's current host are also accepted.
# ALLOWED_ORIGINS=https://milesallen.site,https://www.milesallen.site
# Browser origins allowed to call the API. https://milesallen.site,
# https://www.milesallen.site, and https://api.milesallen.site are always
# allowed; same-origin requests from the current host are accepted too.
# api.milesallen.site and milesallen.site are same-site, so the vault cookie
# keeps SameSite=Strict and still works across the two hostnames.
ALLOWED_ORIGINS=https://milesallen.site,https://www.milesallen.site
# Set true only when a trusted reverse proxy (Caddy, Cloudflare Tunnel) sets
# CF-Connecting-IP or X-Forwarded-For. Never enable this on a direct public
@@ -29,7 +32,7 @@ PUBLIC_ORIGIN=https://milesallen.site
TRUST_PROXY=true
# Where the static site lives. Defaults to the process working directory.
# SITE_ROOT=/opt/miles-web
# SITE_ROOT=/opt/websites/miles-web
# SQLite file. Keep it outside the web root if you serve files with another
# web server. The Node app already blocks /data and /server.
@@ -129,6 +132,6 @@ LOG_LEVEL=info
# ---------------------------------------------------------------------------
# Optional registry path overrides
# ---------------------------------------------------------------------------
# PROJECTS_CONFIG_PATH=/opt/miles-web/server/config/projects.json
# SERVICES_CONFIG_PATH=/opt/miles-web/server/config/services.json
# SERVERS_CONFIG_PATH=/opt/miles-web/server/config/servers.json
# PROJECTS_CONFIG_PATH=/opt/websites/miles-web/server/config/projects.json
# SERVICES_CONFIG_PATH=/opt/websites/miles-web/server/config/services.json
# SERVERS_CONFIG_PATH=/opt/websites/miles-web/server/config/servers.json