diff options
author | Jesus Federico <jesus@123it.ca> | 2020-02-13 12:53:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 12:53:51 -0500 |
commit | a3830e3cc6be73b15df6f412fe41eacc7e9c51ed (patch) | |
tree | 40af3f26f429e6d234da6a42b0f8ca6d3956c7b8 /nginx | |
parent | 137eb687bdfce31135de6f153e4e085e1b9e08a8 (diff) | |
download | scalelite-run-itzks-a3830e3cc6be73b15df6f412fe41eacc7e9c51ed.tar.gz scalelite-run-itzks-a3830e3cc6be73b15df6f412fe41eacc7e9c51ed.tar.bz2 scalelite-run-itzks-a3830e3cc6be73b15df6f412fe41eacc7e9c51ed.zip |
Updates for supporting certbot (#2)
Diffstat (limited to 'nginx')
-rw-r--r-- | nginx/sites.template | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nginx/sites.template b/nginx/sites.template index ba3c04e..f3c237d 100644 --- a/nginx/sites.template +++ b/nginx/sites.template @@ -9,6 +9,19 @@ server { listen 80; listen [::]:80; + + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + + location / { + return 301 https://$host$request_uri; + } +} + +server { + server_name $NGINX_HOSTNAME; + listen 443 ssl; listen [::]:443; |