envsdotnet-matrix-conf/etc/nginx/sites-available/element.envs.net.conf
2022-01-05 15:43:39 +01:00

50 lines
832 B
Plaintext

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 http2;
server_name element.envs.net;
include snippets/ssl.conf;
root /opt/Riot/resources/webapp/;
index index.html;
}
#ALIAS
server {
listen 80;
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;
listen [::]:443 ssl http2;
server_name riot.envs.net;
include snippets/ssl.conf;
return 302 https://element.envs.net$request_uri;
}