Files @ 114f02e67a4d
Branch filter:

Location: majic-ansible-roles/roles/wsgi_website/templates/systemd_wsgi_website.service.j2

branko
MAR-173: Switch to using Prosody 0.11 as default version in the xmpp_server role:

- Updated default value for the Prosody package parameters.
- Configure the backports repository on the server, and pin the
lua-ldap package to be installed from the backports
repository (needed for Lua 5.2 support).
- Drop the explicit installation of lua-sec library - it is already
installed as pre-requisite for the Prosody package.
[Unit]
Description=Website {{ fqdn }}
Requires={{ fqdn }}.socket
After=network.target

[Service]
User={{ user }}
Group={{ user }}
WorkingDirectory={{ home }}/code
ExecStart={{ home }}/virtualenv/bin/gunicorn --bind unix:/run/wsgi/{{ fqdn }}.sock {% if use_paste %}--paste {{home}}/code/{{ wsgi_application }}{% else %}{{ wsgi_application }}{% endif %}

{% for var, val in environment_variables | dictsort %}
Environment="{{ var }}={{ val }}"
{% endfor %}

ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
UMask=0007

[Install]
WantedBy=multi-user.target