elementweb: beginn to add configuration
This commit is contained in:
parent
dbcfc26b8e
commit
c53c72d54b
4 changed files with 46 additions and 0 deletions
5
ansible/roles/docker-compose/files/elementweb/.env
Normal file
5
ansible/roles/docker-compose/files/elementweb/.env
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
SYNAPSE_VERSION=v1.92.3
|
||||||
|
NGINX_VERSION=1.25.2-alpine
|
||||||
|
|
||||||
|
SYNAPSE_SERVER_NAME=corp-serv.net
|
||||||
|
NGINX_SYNAPSE_FQDN=synapse.corp-apps.com
|
|
@ -0,0 +1,39 @@
|
||||||
|
server {
|
||||||
|
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
ssl_certificate /ssl/chain.crt;
|
||||||
|
ssl_certificate_key /ssl/certificate.keyplain;
|
||||||
|
|
||||||
|
client_max_body_size 100m;
|
||||||
|
|
||||||
|
error_page 403 404 /403_404.html;
|
||||||
|
location = /403_404.html {
|
||||||
|
default_type application/json;
|
||||||
|
return 200 'You are not authorized to access this page.';
|
||||||
|
}
|
||||||
|
|
||||||
|
location /.well-known/matrix/server {
|
||||||
|
default_type application/json;
|
||||||
|
return 200 '{"m.server": "ungleich.matrix.ungleich.cloud:443" }';
|
||||||
|
}
|
||||||
|
location /.well-known/matrix/client {
|
||||||
|
default_type application/json;
|
||||||
|
return 200 '{ "m.homeserver": { "base_url": "https://ungleich.matrix.ungleich.cloud" } }';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
|
||||||
|
proxy_connect_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
|
|
||||||
|
proxy_pass http://elementweb:8008;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Test for Element
|
|
@ -0,0 +1 @@
|
||||||
|
Test for Synapse
|
Loading…
Reference in a new issue