test
This commit is contained in:
parent
8fe999c3bb
commit
5717e1bd2f
2
.env
2
.env
@ -1,5 +1,5 @@
|
|||||||
PROD_URL=matrix.gmoker.com
|
PROD_URL=matrix.gmoker.com
|
||||||
PUBLIC_URL=gmoker.com
|
SERVER_NAME=test.k8s.gmoker.com
|
||||||
IMAGEAPP=ghcr.io/element-hq/synapse:v1.106.0
|
IMAGEAPP=ghcr.io/element-hq/synapse:v1.106.0
|
||||||
|
|
||||||
TURN_URL=turn.test.gmoker.com
|
TURN_URL=turn.test.gmoker.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
server_name: "$BASE_URL"
|
server_name: "$SERVER_NAME"
|
||||||
public_baseurl: "https://$PUBLIC_URL"
|
public_baseurl: "https://$BASE_URL"
|
||||||
pid_file: /homeserver.pid
|
pid_file: /homeserver.pid
|
||||||
web_client: false
|
web_client: false
|
||||||
soft_file_limit: 0
|
soft_file_limit: 0
|
||||||
@ -91,5 +91,3 @@ password_config:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
encryption_enabled_by_default_for_room_type: "all"
|
encryption_enabled_by_default_for_room_type: "all"
|
||||||
|
|
||||||
serve_server_wellknown: true
|
|
||||||
|
@ -51,6 +51,7 @@ kcreatecm synapse-config \
|
|||||||
--from-file=homeserver.yaml=<(envsubst "$(env | xargs printf '$%s ')" < homeserver.yaml) \
|
--from-file=homeserver.yaml=<(envsubst "$(env | xargs printf '$%s ')" < homeserver.yaml) \
|
||||||
--from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < log.config)
|
--from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < log.config)
|
||||||
|
|
||||||
kapply common/keys.yaml common/app.yaml
|
kapply common/keys.yaml common/app.yaml common/delegation.yaml
|
||||||
|
|
||||||
|
kubectl rollout restart deployment delegation
|
||||||
kubectl rollout restart statefulset app
|
kubectl rollout restart statefulset app
|
||||||
|
@ -4,7 +4,3 @@
|
|||||||
export NB_REPLICAS=1
|
export NB_REPLICAS=1
|
||||||
|
|
||||||
. ./manifests/bin/deploy.sh
|
. ./manifests/bin/deploy.sh
|
||||||
|
|
||||||
kapply prod/delegation.yaml
|
|
||||||
|
|
||||||
kubectl rollout restart deployment delegation
|
|
||||||
|
@ -10,9 +10,9 @@ spec:
|
|||||||
tls:
|
tls:
|
||||||
- secretName: tls-delegation
|
- secretName: tls-delegation
|
||||||
hosts:
|
hosts:
|
||||||
- "$PUBLIC_URL"
|
- "$SERVER_NAME"
|
||||||
rules:
|
rules:
|
||||||
- host: "$PUBLIC_URL"
|
- host: "$SERVER_NAME"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /.well-known/matrix/server
|
- path: /.well-known/matrix/server
|
||||||
@ -53,11 +53,17 @@ data:
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
|
location /.well-known/matrix/server {
|
||||||
|
default_type application/json;
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
|
||||||
|
return 200 '{"m.server": "$BASE_URL:443"}'
|
||||||
|
}
|
||||||
location /.well-known/matrix/client {
|
location /.well-known/matrix/client {
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
|
||||||
return 200 '{"m.homeserver": { "base_url": "https://$BASE_URL" }}';
|
return 200 '{"m.homeserver": {"base_url": "https://$BASE_URL"}}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
---
|
---
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
kubectl exec -it -n synapse svc/app -- register_new_matrix_user -c /config/homeserver.yaml
|
kubectl exec -it svc/app -- register_new_matrix_user -c /config/homeserver.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user