Added support for multiple hosts in caddy configuration and CSRF_TRUSTED_ORIGINS #22

This commit is contained in:
ChaoticByte 2023-02-12 10:59:22 +01:00
parent b78e196fec
commit fb3bbf3fc5
4 changed files with 13 additions and 8 deletions

View file

@ -7,7 +7,7 @@
https_port {$HTTPS_PORT}
}
{$CADDY_HOST} {
{$CADDY_HOSTS} {
# the tls certificates
tls {$DATADIR}/tls/server.pem {$DATADIR}/tls/server-key.pem
route {

View file

@ -28,7 +28,9 @@ db:
port: 5432
caddy:
# Webserver settings
host: "localhost"
hosts:
- "localhost"
- "127.0.0.1"
http_port: 80
https_port: 443
logs: