Add public directory
This commit is contained in:
parent
3b55041992
commit
a0b37487e9
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue