Files
newsfeed/asset/config/config.toml.tmpl
rob thijssen 81fe5f7d4d
All checks were successful
deploy / build-web (push) Successful in 1m34s
deploy / deploy-web (push) Successful in 4s
deploy / build-api (push) Successful in 6m17s
deploy / deploy-api (push) Successful in 10s
fix: move newsfeed-api off 8081 to 22672 (conflict-unlikely port)
8081 is the alt-HTTP port — one of the crowded defaults every proxy/dev server
grabs — so it's collision-prone on a shared host. Move to 22672, a registered-
range port in the sparse 20000s band, derived deterministically from the
service name and recorded in architecture port-allocations.md.

Updated everywhere the number appears: api bind config + default, firewalld
service XML, nginx upstream, vite dev proxy, deploy workflow API_PORT,
infra-setup (SELinux semanage label), and docs.

Operator note: re-run script/infra-setup.sh on slartibartfast to relabel the
SELinux port (22672) and ship the updated firewalld XML before the next deploy
restarts the api on the new port.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016fKZzDpvjiJ9eYbPGgJvUP
2026-07-08 12:25:26 +03:00

21 lines
848 B
Cheetah

# newsfeed-api configuration (production). Rendered to /etc/newsfeed/config.toml.
#
# This file contains no secrets — newsfeed uses SQLite (no DB password), and session
# cookies / API tokens are random values hashed at rest (no signing key). It is therefore
# committed as concrete values, not {{PLACEHOLDER}} templates. Env (NEWSFEED_*) still
# overrides any value at runtime.
# Bind the mesh-routable address so the oolon proxy can reach it. firewalld
# (newsfeed-api service) bounds who may connect; TLS terminates at oolon.
bind = "0.0.0.0:22672"
database_path = "/var/lib/newsfeed/newsfeed.db"
session_ttl_days = 30
max_db_connections = 5
# Same-origin in production (oolon serves the SPA and proxies the API), so no CORS.
cors_origins = []
# Cookies are only sent over HTTPS (the browser talks to oolon over TLS).
cookie_secure = true