##// END OF EJS Templates
config: tweak template http_server conditionals - don't leave an empty section when using UWSGI...
Mads Kiilerich -
r6858:2c0e7e1d default
parent child Browse files
Show More
@@ -60,7 +60,12 b' smtp_port ='
60 #smtp_use_ssl = false
60 #smtp_use_ssl = false
61 #smtp_use_tls = false
61 #smtp_use_tls = false
62
62
63 ## Entry point for 'gearbox serve'
63 [server:main]
64 [server:main]
65 #host = 127.0.0.1
66 host = 0.0.0.0
67 port = 5000
68
64 ## WAITRESS ##
69 ## WAITRESS ##
65 use = egg:waitress#main
70 use = egg:waitress#main
66 ## number of worker threads
71 ## number of worker threads
@@ -71,11 +76,6 b' max_request_body_size = 107374182400'
71 ## windows systems.
76 ## windows systems.
72 #asyncore_use_poll = True
77 #asyncore_use_poll = True
73
78
74 ## COMMON ##
75 #host = 127.0.0.1
76 host = 0.0.0.0
77 port = 5000
78
79 ## middleware for hosting the WSGI application under a URL prefix
79 ## middleware for hosting the WSGI application under a URL prefix
80 #[filter:proxy-prefix]
80 #[filter:proxy-prefix]
81 #use = egg:PasteDeploy#prefix
81 #use = egg:PasteDeploy#prefix
@@ -61,7 +61,12 b' smtp_port ='
61 #smtp_use_ssl = false
61 #smtp_use_ssl = false
62 #smtp_use_tls = false
62 #smtp_use_tls = false
63
63
64 %if http_server != 'uwsgi':
65 <%text>## Entry point for 'gearbox serve'</%text>
64 [server:main]
66 [server:main]
67 host = ${host}
68 port = ${port}
69
65 %if http_server == 'gearbox':
70 %if http_server == 'gearbox':
66 <%text>## Gearbox default web server ##</%text>
71 <%text>## Gearbox default web server ##</%text>
67 use = egg:gearbox#wsgiref
72 use = egg:gearbox#wsgiref
@@ -103,7 +108,8 b' max_requests = 1000'
103 <%text>## restarted</%text>
108 <%text>## restarted</%text>
104 timeout = 3600
109 timeout = 3600
105
110
106 %elif http_server == 'uwsgi':
111 %endif
112 %else:
107 <%text>## UWSGI ##</%text>
113 <%text>## UWSGI ##</%text>
108 <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text>
114 <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text>
109 [uwsgi]
115 [uwsgi]
@@ -165,11 +171,6 b' workers = 4'
165 cheaper-step = 1
171 cheaper-step = 1
166
172
167 %endif
173 %endif
168 %if http_server != 'uwsgi':
169 host = ${host}
170 port = ${port}
171
172 %endif
173 <%text>## middleware for hosting the WSGI application under a URL prefix</%text>
174 <%text>## middleware for hosting the WSGI application under a URL prefix</%text>
174 #[filter:proxy-prefix]
175 #[filter:proxy-prefix]
175 #use = egg:PasteDeploy#prefix
176 #use = egg:PasteDeploy#prefix
General Comments 0
You need to be logged in to leave comments. Login now