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;
|
|
|
|
}
|
2022-02-15 00:26:44 -05:00
|
|
|
|
2021-04-03 02:37:14 -04:00
|
|
|
location /sec {
|
|
|
|
autoindex on;
|
|
|
|
auth_basic "Secure Area";
|
|
|
|
auth_basic_user_file /etc/nginx/htpasswd;
|
|
|
|
}
|
|
|
|
}
|