fix nginx config

This commit is contained in:
bakatrouble 2019-03-08 18:44:50 +03:00
parent 4fcf7b290e
commit 746ec042d8
2 changed files with 17 additions and 24 deletions

View File

@ -1,37 +1,15 @@
location @drop_app {
proxy_pass unix:///tmp/drop.sock;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
server {
server_name ~^drop\.bakatrouble\.(pw|me)$;
root /srv/apps/drop/files;
location /~static/ {
alias /srv/apps/drop/~static;
}
location / {
try_files $uri @drop_app;
}
include /etc/nginx/letsencrypt-serv.conf;
include /srv/apps/drop/configs/nginx_include.conf;
}
server {
server_name ~^(?<dir>.*)\.drop\.bakatrouble\.(pw|me)$;
root /srv/apps/drop/subdomain_files/$dir;
location /~static/ {
alias /srv/apps/drop/~static;
}
location / {
try_files $uri @drop_app;
}
include /etc/nginx/letsencrypt-serv.conf;
include /srv/apps/drop/configs/nginx_include.conf;
}
server {

View File

@ -0,0 +1,15 @@
location @drop_app {
proxy_pass unix:///tmp/drop.sock;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
location /~static/ {
alias /srv/apps/drop/~static;
}
location / {
try_files $uri @drop_app;
}
include /etc/nginx/letsencrypt-serv.conf;