Skip to content

Commit

Permalink
Merge branch '2-cmdb'
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieHan committed Feb 26, 2019
2 parents 3182032 + 8c00fdd commit 05b1cc6
Show file tree
Hide file tree
Showing 9 changed files with 1,099 additions and 0 deletions.
777 changes: 777 additions & 0 deletions README.md

Large diffs are not rendered by default.

219 changes: 219 additions & 0 deletions config/basic_data_20190225.sql

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions config/celery_worker.ini
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
64 changes: 64 additions & 0 deletions config/nginx.conf
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;
}
}
}
8 changes: 8 additions & 0 deletions config/sandboxmp_uwsgi.ini
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
12 changes: 12 additions & 0 deletions config/smp_uwsgi.ini
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
Binary file added document/images/stepww.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added slogs/sandbox_err.log
Empty file.
Empty file added slogs/sandbox_info.log
Empty file.

0 comments on commit 05b1cc6

Please sign in to comment.