Permalink
Browse files

Config nginx:80 root so certbot --renew works as expected

  • Loading branch information...
kstrauser committed Jul 17, 2017
1 parent dd9b0cd commit 76a0107c681414b268fdc04f653dfbad7c29f99f
Showing with 2 additions and 1 deletion.
  1. +2 −1 ansible/roles/nginx/templates/mastodon.j2
@@ -10,6 +10,7 @@ server {
add_header Heartbleed "NO; see http://heartbleedheader.com";
access_log /var/log/nginx/{{ mastodon_domain }}-access.log;
error_log /var/log/nginx/{{ mastodon_domain }}-error.log;
root {{ mastodon_public }};

location /.well-known/acme-challenge/ { allow all; }
location / {
@@ -35,7 +36,7 @@ server {
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload";
add_header X-Clacks-Overhead "GNU Terry Pratchett";

root /var/www/mastodon;
root {{ mastodon_public }};

# While upstream enables gzip, we don't:
#

0 comments on commit 76a0107

Please sign in to comment.