1
0

Now that paths are fixed in a program, here could be just a / location.

This commit is contained in:
Alexander Andreev 2022-06-28 05:10:22 +04:00
parent 197d52964d
commit e61b4083b0
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -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/;