mirror of
https://github.com/veops/cmdb.git
synced 2025-08-06 15:20:21 +08:00
移除多余的docker-start目录
This commit is contained in:
44
docs/nginx.cmdb.conf.example
Normal file
44
docs/nginx.cmdb.conf.example
Normal file
@@ -0,0 +1,44 @@
|
||||
server {
|
||||
listen ${NGINX_PORT};
|
||||
access_log /var/log/nginx/access.cmdb.log;
|
||||
error_log /var/log/nginx/error.cmdb.log;
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' "$http_origin";
|
||||
add_header 'Access-Control-Allow-Credentials' 'true';
|
||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With';
|
||||
|
||||
gzip on;
|
||||
gzip_comp_level 6;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_min_length 256;
|
||||
gzip_types
|
||||
text/plain
|
||||
text/css
|
||||
text/js
|
||||
text/xml
|
||||
text/javascript
|
||||
application/javascript
|
||||
application/x-javascript
|
||||
application/json
|
||||
application/xml
|
||||
application/rss+xml
|
||||
image/svg+xml;
|
||||
location / {
|
||||
proxy_pass http://${CMDB_UI_HOST};
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
location /api {
|
||||
proxy_pass http://${CMDB_API_HOST};
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
37
docs/requirements.txt
Normal file
37
docs/requirements.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
-i https://mirrors.aliyun.com/pypi/simple
|
||||
# Flask
|
||||
Flask==1.0.3
|
||||
Werkzeug==0.15.4
|
||||
click>=5.0
|
||||
# Api
|
||||
Flask-RESTful ==0.3.7
|
||||
# Database
|
||||
Flask-SQLAlchemy ==2.4.0
|
||||
SQLAlchemy ==1.3.5
|
||||
PyMySQL ==0.9.3
|
||||
redis ==3.2.1
|
||||
# Migrations
|
||||
Flask-Migrate ==2.5.2
|
||||
# Deployment
|
||||
gevent ==1.4.0
|
||||
gunicorn>=19.1.1
|
||||
supervisor ==4.0.3
|
||||
# Auth
|
||||
Flask-Login ==0.4.1
|
||||
Flask-Bcrypt ==0.7.1
|
||||
Flask-Cors>=3.0.8
|
||||
# Caching
|
||||
Flask-Caching>=1.0.0
|
||||
# Environment variable parsing
|
||||
environs ==4.2.0
|
||||
marshmallow ==2.20.2
|
||||
# async tasks
|
||||
celery ==4.3.0
|
||||
more-itertools ==5.0.0
|
||||
kombu ==4.4.0
|
||||
# other
|
||||
six ==1.12.0
|
||||
bs4>=0.0.1
|
||||
toposort>=1.5
|
||||
requests>=2.22.0
|
||||
PyJWT>=1.7.1
|
Reference in New Issue
Block a user