Update installation instructions for nginx/certbot (fixes #6)
This commit is contained in:
16
nginx.conf
16
nginx.conf
@@ -35,9 +35,9 @@ http {
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name mempool.space;
|
||||
server_name example.com;
|
||||
|
||||
if ($host = mempool.space) {
|
||||
if ($host = example.com) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
@@ -45,17 +45,17 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/mempool.space/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/mempool.space/privkey.pem; # managed by Certbot
|
||||
listen [::]:443 ssl http2; # managed by Certbot
|
||||
listen 443 ssl http2; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/example.com/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
|
||||
|
||||
root /var/www/html;
|
||||
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
server_name mempool.space; # managed by Certbot
|
||||
index index.html;
|
||||
server_name example.com; # managed by Certbot
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
|
||||
Reference in New Issue
Block a user