domain updates
CI / Lint, types, build, tests (push) Canceled after 0s
CI / Docker images build (push) Canceled after 0s

This commit is contained in:
olehhapuk
2026-12-03 12:27:03 +02:00
parent d47863f653
commit ea1f5f8b16
3 changed files with 42 additions and 24 deletions
+18 -13
View File
@@ -1,7 +1,12 @@
# The one door from the internet: gets and renews the TLS certificates, and
# hands each name to its service. DOMAIN comes from .env beside
# docker-compose.yml; all three names must point at this server.
(common) {
# electro4ort's sites for the server's Caddy, which mounts this file among its
# sites (/etc/caddy/sites/electro4ort.caddy), gets the TLS certificates and
# reaches the services over the shared "web" network.
#
# The names are written out because that Caddy doesn't read this project's
# .env; they must match DOMAIN there, and all three must point at the server.
# The snippet is named after the project because every site file shares one
# namespace.
(electro4ort) {
encode zstd gzip
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains"
@@ -10,8 +15,8 @@
}
# The web app.
{$DOMAIN} {
import common
electro4ort.com.ua {
import electro4ort
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
@@ -22,18 +27,18 @@
# Built files carry a hash of their content in their name.
@built path /assets/*
header @built Cache-Control "public, max-age=31536000, immutable"
reverse_proxy web:3000
reverse_proxy electro4ort-web:3000
}
# The API and its socket. It sets its own security headers.
api.{$DOMAIN} {
import common
reverse_proxy api:3000
api.electro4ort.com.ua {
import electro4ort
reverse_proxy electro4ort-api:3000
}
# Signalling for calls. The media itself doesn't pass through here: browsers
# send it straight to LiveKit, on the ports docker-compose.yml opens.
livekit.{$DOMAIN} {
import common
reverse_proxy livekit:7880
livekit.electro4ort.com.ua {
import electro4ort
reverse_proxy electro4ort-livekit:7880
}