Add public directory

This commit is contained in:
Marius 2016-11-04 19:51:39 +01:00
parent 3b55041992
commit a0b37487e9
2 changed files with 11 additions and 0 deletions

View File

@ -180,6 +180,10 @@ setup {
name = "nginx | Add nginx PPA" name = "nginx | Add nginx PPA"
apt_repository = "repo='ppa:nginx/stable'" apt_repository = "repo='ppa:nginx/stable'"
} }
tasks {
name = "nginx | Create public www directory"
file = "path=/mnt/nginx-www state=directory owner=www-data group=ubuntu mode=ug+rwX,o= recurse=yes"
}
} }
} }

View File

@ -4,6 +4,13 @@ server {
server_name master.tus.io; server_name master.tus.io;
# certbot will place the files required for the HTTP challenge in the
# webroot under the .well-known/acme-challenge directory. Therefore we must
# make this path publicly accessible.
location /.well-known {
root /mnt/nginx-www/;
}
location / { location / {
# Forward incoming requests to local tusd instance # Forward incoming requests to local tusd instance
proxy_pass http://localhost:8080; proxy_pass http://localhost:8080;