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

20 lines
420 B
Plaintext
Raw Normal View History

2021-04-03 02:37:14 -04:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name content.libraryofcode.org;
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
root /var/www/content;
2021-05-01 15:13:49 -04:00
2021-04-03 02:37:14 -04:00
location / {
autoindex on;
}
location /sec {
autoindex on;
auth_basic "Secure Area";
auth_basic_user_file /etc/nginx/htpasswd;
}
}