-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2935: webserver-xxx.yaml, add new configurations
- Loading branch information
1 parent
a082fb2
commit 0ea97a0
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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,29 @@ | ||
## | ||
## This file contains webserver related configurations: | ||
## | ||
## - flask: application framework | ||
## - gunicorn: webserver(s) | ||
## - nginx: forward proxy | ||
## | ||
## @gunicorn:workers, the number of work processes should be between 2-4 | ||
## workers per core in the server. | ||
## | ||
## http://docs.gunicorn.org/en/latest/run.html#commonly-used-arguments | ||
## | ||
webserver: | ||
root_dir: '/var/machine-learning' | ||
pyyaml: '3.12' | ||
|
||
flask: | ||
log_path: '/log/webserver/flask.log' | ||
|
||
gunicorn: | ||
version: 19.6.0' | ||
conf: '/etc/init/gunicorn.conf' | ||
user: 'root' | ||
group: 'root' | ||
version: '' | ||
bind: 0.0.0.0 | ||
port: 6001 | ||
workers: 6 | ||
log_path: '/log/webserver/gunicorn.log' |
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,24 @@ | ||
## | ||
## This file contains webserver related configurations: | ||
## | ||
## - flask: application framework | ||
## - gunicorn: webserver(s) | ||
## - nginx: forward proxy | ||
## | ||
## @gunicorn:workers, the number of work processes should be between 2-4 | ||
## workers per core in the server. | ||
## | ||
## http://docs.gunicorn.org/en/latest/run.html#commonly-used-arguments | ||
## | ||
webserver: | ||
root_dir: '/var/machine-learning' | ||
|
||
flask: | ||
log_path: '/log/webserver/flask.log' | ||
|
||
gunicorn: | ||
run: true | ||
bind: 0.0.0.0 | ||
port: 5001 | ||
workers: 6 | ||
log_path: '/log/webserver/gunicorn.log' |