feat: serve the static sites from cum-sites #22
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/sites-nginx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The static sites move off cum-services onto cum-sites, which now runs its own nginx with one plain-HTTP port per site. cum-services keeps TLS and proxies to them like any other service.
X-Forwarded-Forfrom cum-services so its logs show the real client IP.addSSLtoforceSSL, matching every other vhost.Evidence
root = /var/www/m4rtiand/var/www/silvia; cum-sites has no nginx.After:
nix evalof cum-services vhosts: and of cum-sites vhosts: m4rti.dev on 8001 rooted at/var/www/dev.m4rti, silvia.cumsek.com on 8002 rooted at/var/www/com.cumsek.silvia.nix build .#nixosConfigurations.{cum-services,cum-sites}.config.system.build.toplevelsucceeds for both.Merge Danger
Door: two-way
Revert and redeploy cum-services restores the old vhosts, as long as the old
/var/wwwdirs on cum-services are not deleted until the new setup is confirmed.Blast Radius: two-sites
The site files are not managed by Nix. Deploy order matters or both sites 502:
/var/www/m4rti-> cum-sites/var/www/dev.m4rti, and/var/www/silvia->/var/www/com.cumsek.silvia.curl 192.168.1.204:8001and:8002.🤖 Generated with Claude Code