configurations/Nginx/Server Blocks/cloud.libraryofcode.org.conf

16 lines
381 B
Plaintext
Raw Normal View History

2021-04-03 02:08:09 -04:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name cloud.libraryofcode.org;
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
location / {
2021-04-03 02:37:14 -04:00
return 307 $scheme://www.libraryofcode.org/;
2021-04-03 02:08:09 -04:00
}
location ~ /(.*)$ {
2021-04-03 02:37:14 -04:00
rewrite https://$1.cloud.libraryofcode.org temporary;
2021-04-03 02:08:09 -04:00
}
}