diff options
author | csaurus <csaurus@mailbox.org> | 2018-04-20 18:43:49 -0400 |
---|---|---|
committer | csaurus <csaurus@mailbox.org> | 2018-04-20 18:43:49 -0400 |
commit | 1c6a691570c1214210f6c7f7f33b0162990e73a1 (patch) | |
tree | 8d3f09991c66d7f46b9bd6d5495eed9c6995c7f4 /installation/pleroma.nginx | |
parent | a61e8ac15473aca6d0ec9ef20df981bcef9d5897 (diff) | |
download | pleroma-1c6a691570c1214210f6c7f7f33b0162990e73a1.tar.gz pleroma-1c6a691570c1214210f6c7f7f33b0162990e73a1.zip |
Add info about certbot with the webroot plugin to pleroma.nginx
Diffstat (limited to 'installation/pleroma.nginx')
-rw-r--r-- | installation/pleroma.nginx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 61e40c508..895799a8e 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -4,7 +4,7 @@ # 1. Install your TLS certificate, possibly using Let's Encrypt. # 2. Replace 'example.tld' with your instance's domain wherever it appears. # 3. Copy this file to /etc/nginx/sites-available/ and then add a symlink to it -# in /etc/nginx/sites-enabled/ and restart nginx. +# in /etc/nginx/sites-enabled/ and run 'nginx -s reload' or restart nginx. proxy_cache_path /tmp/pleroma-media-cache levels=1:2 keys_zone=pleroma_media_cache:10m max_size=10g inactive=720m use_temp_path=off; @@ -13,6 +13,15 @@ server { listen 80; server_name example.tld; return 301 https://$server_name$request_uri; + + # Uncomment this if you need to use the 'webroot' method with certbot. Make sure + # that you also create the .well-known/acme-challenge directory structure in pleroma/priv/static and + # that is is accessible by the webserver. You may need to load this file with the ssl + # server block commented out, run certbot to get the certificate, and then uncomment it. + # + # location ~ /\.well-known/acme-challenge { + # root <path to install>/pleroma/priv/static/; + # } } server { |