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

17 lines
386 B
Plaintext

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 / {
return 307 $scheme://www.libraryofcode.org/;
}
location ~ /(.*)$ {
rewrite https://$1.cloud.libraryofcode.org temporary;
}
}