Now that paths are fixed in a program, here could be just a / location.
This commit is contained in:
parent
197d52964d
commit
e61b4083b0
@ -9,6 +9,7 @@ server {
|
|||||||
|
|
||||||
access_log /var/log/nginx/dwelling/files.log main if=$nolog;
|
access_log /var/log/nginx/dwelling/files.log main if=$nolog;
|
||||||
|
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/arav.top/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/arav.top/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/arav.top/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/arav.top/privkey.pem;
|
||||||
|
|
||||||
@ -22,7 +23,7 @@ server {
|
|||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://unix:/var/run/dwelling-files/f.sock/index/;
|
proxy_pass http://unix:/var/run/dwelling-files/f.sock;
|
||||||
|
|
||||||
proxy_set_header X-Client-Timezone "$gi2_location_tz";
|
proxy_set_header X-Client-Timezone "$gi2_location_tz";
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@ -30,11 +31,6 @@ server {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /assets/ {
|
|
||||||
proxy_pass http://unix:/var/run/dwelling-files/f.sock/assets/;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
location /file/ {
|
location /file/ {
|
||||||
alias /srv/ftp/;
|
alias /srv/ftp/;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user