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

17 lines
386 B
Plaintext
Raw Permalink 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
}
2022-02-15 00:26:44 -05:00
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
}
}