mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-14 16:01:01 +00:00
Update INSTALL.md
fix listen IPv4/IPv6 on Nginx config
This commit is contained in:
parent
008f2b1d71
commit
e486a29d64
1 changed files with 4 additions and 1 deletions
|
@ -182,6 +182,7 @@ Here is a sample Nginx configuration for a Plume instance (replace `blog.example
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
server_name blog.example.com;
|
server_name blog.example.com;
|
||||||
|
|
||||||
location /.well-known/acme-challenge {}
|
location /.well-known/acme-challenge {}
|
||||||
|
@ -191,11 +192,13 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
server_name blog.example.org;
|
server_name blog.example.org;
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
root /home/plume/Plume/ ;
|
root /home/plume/Plume/ ;
|
||||||
|
|
||||||
listen [::]:443 ssl; # managed by Certbot
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/blog.example.com/cert.pem
|
SSLCertificateFile /etc/letsencrypt/live/blog.example.com/cert.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/blog.example.com/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/blog.example.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/blog.example.com/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/blog.example.com/chain.pem
|
||||||
|
|
Loading…
Reference in a new issue