-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuwsgi-development.ini
99 lines (74 loc) · 2.25 KB
/
uwsgi-development.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
###
[app:main]
use = egg:pyramid_notebook
pyramid.reload_templates = true
pyramid.debug_authorization = true
pyramid.debug_notfound = true
pyramid.debug_routematch = true
pyramid.default_locale_name = en
pyramid.includes =
jinja2.filters =
route_url = pyramid_jinja2.filters:route_url_filter
jinja2.extensions =
jinja2.ext.with_
# Where we store IPython Notebook runtime and persistent files
# (pid, saved notebooks, etc.).
# Each user will get a personal subfolder in this folder
pyramid_notebook.notebook_folder = /tmp/pyramid_notebook
# Automatically shutdown IPython Notebook kernel
# after his many seconds have elapsed since startup
pyramid_notebook.kill_timeout = 3600
# Port range where IPython Notebook binds localhost for HTTP and websocket connections.
# By default this is TCP/IP ports localhost:41000 - localhost:41010.
# In production, you need to proxy websocket in these from your front end web server
# using websocket proxying (see example below).
pyramid_notebook.port_base = 41000
# Websocket proxy launch function.
# This function upgrades the current HTTP request to Websocket (101 upgrade protocol)
# and starts websocket proxy loop
pyramid_notebook.websocket_proxy = pyramid_notebook.uwsgi.serve_websocket
# Production example:
# pyramid_notebook.websocket_url = wss://localhost:{port}/notebook-websocket/{port}
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 9999
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
###
[loggers]
keys = root, proxy, pyramid_debug, notebook_uwsgi
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = DEBUG
handlers = console
[logger_proxy]
level = WARN
handlers =
qualname = pyramid_notebook.proxy
# Pyramid router debug info
[logger_pyramid_debug]
level = INFO
qualname = pyramid_debug
handlers =
[logger_notebook_uwsgi]
level = INFO
qualname = pyramid_notebook.uwsgi
handlers =
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s