fix: www specific location for archiso

This commit is contained in:
vincent 2024-01-30 20:53:30 +01:00
parent da6f04e42e
commit 4117bd80c5

View File

@ -42,8 +42,8 @@ job "www" {
]
volumes = [
"local/nginx.conf:/etc/nginx/nginx.conf",
"/srv/http/welcome:/usr/share/nginx/html/welcome",
"/mnt/diskstation/nomad/archiso:/usr/share/nginx/html/archiso"
"/srv/http/:/usr/share/nginx/html/",
"/mnt/diskstation/nomad/archiso:/usr/share/nginx/archiso"
]
}
@ -74,6 +74,10 @@ http {
rewrite ^ /welcome redirect;
#return 301 https://$host/welcome
}
location /archiso {
alias /usr/share/nginx/archiso/;
}
}
}