feat: PUBLIC_URL

This commit is contained in:
ange 2024-05-01 14:44:19 +02:00
parent f03984f9d0
commit a487a22ee5
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
4 changed files with 5 additions and 2 deletions

1
.env
View File

@ -1,4 +1,5 @@
PROD_URL=matrix.gmoker.com
PUBLIC_URL=gmoker.com
IMAGEAPP=ghcr.io/element-hq/synapse:v1.106.0
TURN_URL=turn.test.gmoker.com

View File

@ -15,6 +15,7 @@ jobs:
fi
cat <<EOF >> .env
BASE_URL="$BASE_URL"
PUBLIC_URL="${PUBLIC_URL:-$BASE_URL}"
EOF
cat .env

View File

@ -1,4 +1,5 @@
server_name: "$BASE_URL"
public_baseurl: "$PUBLIC_URL"
pid_file: /homeserver.pid
web_client: false
soft_file_limit: 0

View File

@ -10,9 +10,9 @@ spec:
tls:
- secretName: tls-delegation
hosts:
- gmoker.com
- "$PUBLIC_URL"
rules:
- host: gmoker.com
- host: "$PUBLIC_URL"
http:
paths:
- path: /.well-known/matrix/server