2021-08-01 08:49:47 -04:00
|
|
|
server {
|
|
|
|
listen 80;
|
2022-01-05 09:43:39 -05:00
|
|
|
listen [::]:80;
|
2021-08-01 08:49:47 -04:00
|
|
|
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;
|
2022-01-05 09:43:39 -05:00
|
|
|
listen [::]:443 ssl http2;
|
2021-08-01 08:49:47 -04:00
|
|
|
server_name element.envs.net;
|
|
|
|
|
|
|
|
include snippets/ssl.conf;
|
|
|
|
|
|
|
|
root /opt/Riot/resources/webapp/;
|
|
|
|
index index.html;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ALIAS
|
|
|
|
server {
|
|
|
|
listen 80;
|
2022-01-05 09:43:39 -05:00
|
|
|
listen [::]:80;
|
2021-08-01 08:49:47 -04:00
|
|
|
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;
|
2022-01-05 09:43:39 -05:00
|
|
|
listen [::]:443 ssl http2;
|
2021-08-01 08:49:47 -04:00
|
|
|
server_name riot.envs.net;
|
|
|
|
|
|
|
|
include snippets/ssl.conf;
|
|
|
|
|
|
|
|
return 302 https://element.envs.net$request_uri;
|
|
|
|
}
|