26 lines
541 B
Plaintext
26 lines
541 B
Plaintext
server {
|
|
# SSL configuration
|
|
listen 443 ssl default_server;
|
|
listen [::]:443 ssl default_server;
|
|
http2 on;
|
|
|
|
server_name loadingm.xyz;
|
|
acme_certificate letsencrypt;
|
|
ssl_certificate $acme_certificate;
|
|
ssl_certificate_key $acme_certificate_key;
|
|
ssl_certificate_cache max=2;
|
|
|
|
root /data/site;
|
|
|
|
location /hosted {
|
|
index index.html;
|
|
autoindex on;
|
|
}
|
|
|
|
location / {
|
|
# First attempt to serve request as file, then
|
|
# as directory, then fall back to displaying a 404.
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|