Initial commit
This commit is contained in:
27
configs/nginx.conf
Normal file
27
configs/nginx.conf
Normal 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
9
configs/supervisor.conf
Normal 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
6
configs/uwsgi.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[uwsgi]
|
||||
socket = /tmp/drop.sock
|
||||
module = autoindex:application
|
||||
master = true
|
||||
processes = 2
|
||||
enable-threads = true
|
Reference in New Issue
Block a user