Initial commit

This commit is contained in:
2017-04-29 06:17:22 +03:00
commit 8c26558f2a
10 changed files with 4763 additions and 0 deletions

27
configs/nginx.conf Normal file
View File

@@ -0,0 +1,27 @@
server {
listen 80;
server_name drop.217.182.90.36.xip.io;
location /_ {
alias /srv/apps/drop/files;
}
location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/drop.sock;
}
}
server {
listen 80;
server_name ~^(?<dir>.*)\.drop\.217\.182\.90\.36\.xip\.io$;
location /_ {
alias /srv/apps/drop/subdomain_files/$dir;
}
location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/drop.sock;
}
}

9
configs/supervisor.conf Normal file
View File

@@ -0,0 +1,9 @@
[program:drop]
user = www-data
directory = /srv/apps/drop
command = /srv/apps/drop/venv/bin/uwsgi --ini /srv/apps/drop/configs/uwsgi.ini
autostart = true
autorestart = true
stderr_logfile = /srv/apps/drop/logs/uwsgi_err.log
stdout_logfile = /srv/apps/drop/logs/uwsgi_out.log
stopsignal = INT

6
configs/uwsgi.ini Normal file
View File

@@ -0,0 +1,6 @@
[uwsgi]
socket = /tmp/drop.sock
module = autoindex:application
master = true
processes = 2
enable-threads = true