42 lines
1.1 KiB
Org Mode
42 lines
1.1 KiB
Org Mode
|
server {
|
||
|
|
||
|
root /var/www/html;
|
||
|
|
||
|
# Add index.php to the list if you are using PHP
|
||
|
index index.html index.htm index.nginx-debian.html;
|
||
|
|
||
|
server_name home.theribbles.org;
|
||
|
|
||
|
access_log /var/log/nginx/home.theribbles.org-access.log;
|
||
|
|
||
|
error_log /var/log/nginx/home.theribbles.org-error.log debug;
|
||
|
|
||
|
|
||
|
location / {
|
||
|
# First attempt to serve request as file, then
|
||
|
# as directory, then fall back to displaying a 404.
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
|
||
|
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
||
|
listen 443 ssl; # managed by Certbot
|
||
|
ssl_certificate /etc/letsencrypt/live/theribbles.org/fullchain.pem; # managed by Certbot
|
||
|
ssl_certificate_key /etc/letsencrypt/live/theribbles.org/privkey.pem; # managed by Certbot
|
||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||
|
|
||
|
}
|
||
|
server {
|
||
|
if ($host = home.theribbles.org) {
|
||
|
return 301 https://$host$request_uri;
|
||
|
} # managed by Certbot
|
||
|
|
||
|
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
|
||
|
server_name home.theribbles.org;
|
||
|
return 404; # managed by Certbot
|
||
|
}
|