diff --git a/ansible/roles/docker-compose/files/elementweb/.env b/ansible/roles/docker-compose/files/elementweb/.env new file mode 100644 index 0000000..42c28c3 --- /dev/null +++ b/ansible/roles/docker-compose/files/elementweb/.env @@ -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 diff --git a/ansible/roles/docker-compose/files/elementweb/nginx/elementweb.conf b/ansible/roles/docker-compose/files/elementweb/nginx/elementweb.conf new file mode 100644 index 0000000..4bb2dbb --- /dev/null +++ b/ansible/roles/docker-compose/files/elementweb/nginx/elementweb.conf @@ -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; + } +} diff --git a/ansible/roles/docker-compose/files/elementweb/www/index.html b/ansible/roles/docker-compose/files/elementweb/www/index.html new file mode 100644 index 0000000..7534d85 --- /dev/null +++ b/ansible/roles/docker-compose/files/elementweb/www/index.html @@ -0,0 +1 @@ +Test for Element diff --git a/ansible/roles/docker-compose/files/synapse/www/index.html b/ansible/roles/docker-compose/files/synapse/www/index.html new file mode 100644 index 0000000..66d9fd4 --- /dev/null +++ b/ansible/roles/docker-compose/files/synapse/www/index.html @@ -0,0 +1 @@ +Test for Synapse