forked from RobbieHan/sandboxMP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,099 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[program:celery-worker] | ||
command=/root/.virtualenvs/sandboxMP/bin/celery worker -A sandboxMP -l INFO | ||
directory=/opt/app/sandboxMP | ||
environment=PATH="/root/.virtualenvs/sandboxMP/bin/" | ||
stdout_logfile=/opt/app/sandboxMP/slogs/celery_worker.log | ||
stderr_logfile=/opt/app/sandboxMP/slogs/celery_worker.log | ||
autostart=true | ||
autorestart=true | ||
priority=901 | ||
|
||
[program:celery-flower] | ||
command=/root/.virtualenvs/sandboxMP/bin/celery flower --broker=redis://localhost:6379/0 | ||
directory=/opt/app/sandboxMP | ||
environment=PATH="/root/.virtualenvs/sandboxMP/bin/" | ||
stdout_logfile=/opt/app/sandboxMP/slogs/celery_flower.log | ||
stderr_logfile=/opt/app/sandboxMP/slogs/celery_flower.log | ||
autostart=true | ||
autorestart=true | ||
priority=900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
worker_processes 1; | ||
events { | ||
worker_connections 1024; | ||
} | ||
http { | ||
|
||
include mime.types; | ||
default_type application/octet-stream; | ||
server_tokens off; | ||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
log_format nginxlog '$http_host ' | ||
'$remote_addr [$time_local] ' | ||
'"$request" $status $body_bytes_sent ' | ||
'"$http_referer" "$http_user_agent" ' | ||
'$request_time ' | ||
'$upstream_response_time'; | ||
access_log /var/log/nginx/access.log nginxlog; | ||
keepalive_timeout 60; | ||
client_header_timeout 10; | ||
client_body_timeout 15; | ||
client_max_body_size 100M; | ||
client_body_buffer_size 1024k; | ||
gzip on; | ||
gzip_min_length 1; | ||
gzip_buffers 4 16k; | ||
gzip_http_version 1.1; | ||
gzip_comp_level 3; | ||
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png app lication/vnd.ms-fontobject application/x-font-ttf image/svg+xml; | ||
gzip_vary on; | ||
|
||
|
||
|
||
upstream sandboxmp { | ||
server 127.0.0.1:9000; | ||
} | ||
|
||
server { | ||
|
||
listen 80; | ||
server_name 0.0.0.0; | ||
charset utf-8; | ||
client_max_body_size 75M; | ||
|
||
|
||
|
||
location /static { | ||
|
||
alias /opt/app/sandboxMP/static; | ||
|
||
} | ||
|
||
location /media { | ||
|
||
alias /opt/app/sandboxMP/media; | ||
} | ||
|
||
location / { | ||
uwsgi_pass sandboxmp; | ||
include /etc/nginx/uwsgi_params; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[program:sandboxmp-uwsgi] | ||
command=/root/.virtualenvs/sandboxMP/bin/uwsgi /etc/smp_uwsgi.ini | ||
stdout_logfile=/var/log/uwsgi/smp_uwsgi.log | ||
stderr_logfile=/var/log/uwsgi/smp_uwsgi.log | ||
stdout_logfile_maxbytes = 20MB | ||
autostart=true | ||
autorestart=true | ||
priority=905 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[uwsgi] | ||
#http = 172.16.3.200:9000 | ||
socket = 127.0.0.1:9000 | ||
chdir = /opt/app/sandboxMP | ||
module = sandboxMP.wsgi | ||
#static-map=/static=/opt/app/sandboxMP/static | ||
#daemonize =/var/log/uwsgi.log | ||
master = Ture | ||
vacuum = True | ||
processes = 4 | ||
threads = 2 | ||
buffer-size=32768 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.