2017-04-29 03:17:22 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
2017-04-29 04:35:40 +00:00
|
|
|
server_name drop.bakatrouble.pw;
|
2017-04-29 03:17:22 +00:00
|
|
|
|
|
|
|
location /_ {
|
|
|
|
alias /srv/apps/drop/files;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass unix:///tmp/drop.sock;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
2017-04-29 04:35:40 +00:00
|
|
|
server_name ~^(?<dir>.*)\.drop\.bakatrouble\.pw$;
|
2017-04-29 03:17:22 +00:00
|
|
|
|
|
|
|
location /_ {
|
|
|
|
alias /srv/apps/drop/subdomain_files/$dir;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass unix:///tmp/drop.sock;
|
|
|
|
}
|
|
|
|
}
|