@@ -40,12 +40,24 @@ Optional Configuration variables
40
40
- ` conf.name ` : The application name (machine name), the same as the Python app. Default: ` {{ project }} `
41
41
- ` conf.python_version ` : The python version to install (major.minor), default: ` 3.5 ` .
42
42
- ` conf.virtualenv_dir ` : Virtualenvs home directory, default to vars' respective option.
43
- - ` conf.wsgi_script ` : The wsgi script, default: ` index.wsgi ` .
44
43
- ` conf.compile_msgs ` : Set to ` true ` in order to compile i18n messages.
45
44
- ` conf.memcached ` : Set to ` true ` in order to clear cache.
46
- - ` conf.data ` : A list of the dump files to load data from, eg ` [project, auth] ` , omit to skip loaddata. Depends on ` loaddata ` variable to be ` true ` .
47
- - ` conf.https_only ` : If true then configure Apache
48
- [ only for SSL] ( https://github.com/Wtower/ansible-node-deploy/issues/6 ) . Default: ` false ` .
45
+ - ` conf.data ` : A list of the dump files to load data from, eg ` [project, auth] ` , omit to skip loaddata.
46
+ Depends on ` loaddata ` variable to be ` true ` .
47
+
48
+ [ WSGI] ( http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIDaemonProcess.html )
49
+
50
+ - ` conf.wsgi_script ` : The wsgi script, default: ` index.wsgi ` .
51
+ - ` conf.wsgi_threads ` : If set mod_wsgi runs in daemon mode (** recommended** 3-25).
52
+
53
+ The following are used only for daemon mode:
54
+
55
+ - ` conf.wsgi_processes ` : If set mod_wsgi runs in multi-process mode (integer).
56
+ - ` conf.wsgi_inactivity_timeout ` : Set only for small traffic sites to reset process and reclaim memory (eg. 300).
57
+ - ` conf.wsgi_restart_interval ` : Set to let process restart after n seconds. Useful if process memory grows large.
58
+ - ` conf.wsgi_max_requests ` : Similar to the above.
59
+ - ` conf.wsgi_graceful_timeout ` : If any of the above two are set, the number of seconds to expect no requests to restart.
60
+ - ` conf.wsgi_queue_timeout ` : If large request queues, drop requests after that many seconds.
49
61
50
62
Other default variables
51
63
-----------------------
@@ -163,7 +175,11 @@ Task description
163
175
164
176
Reset target directory ownership to the appropriate Plesk permissions.
165
177
166
- 24 . Configure Apache
178
+ 24 . Touch WSGI script
179
+
180
+ Update the timestamp. If WSGI daemon mode it causes restart of the process at next request.
181
+
182
+ 25 . Configure Apache
167
183
168
184
Configure Apache to execute the wsgi script using the provided template file.
169
185
Only executes if a ` domain_name ` is provided.
0 commit comments