add element client config

This commit is contained in:
creme 2021-08-01 14:49:47 +02:00
parent 490b2ecba7
commit 0829b44a28
No known key found for this signature in database
GPG Key ID: C147C3B7FBDF08D0
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
server {
listen 80;
#listen [::]:80;
server_name element.envs.net;
location / {
return 302 https://$host$request_uri;
}
location /.well-known/acme-challenge/ {
alias /var/lib/letsencrypt/.well-known/acme-challenge/;
}
}
server {
listen 443 ssl http2;
#listen [::]:443 ssl;
server_name element.envs.net;
include snippets/ssl.conf;
root /opt/Riot/resources/webapp/;
index index.html;
}
#ALIAS
server {
listen 80;
server_name riot.envs.net;
location / {
return 302 https://element.envs.net$request_uri;
}
location /.well-known/acme-challenge/ {
alias /var/lib/letsencrypt/.well-known/acme-challenge/;
}
}
server {
listen 443 ssl http2;
server_name riot.envs.net;
include snippets/ssl.conf;
return 302 https://element.envs.net$request_uri;
}

View File

@ -0,0 +1 @@
../sites-available/element.envs.net.conf

View File

@ -0,0 +1 @@
../sites-available/matrix.envs.net.conf