mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
17
roles/unmaintained/bounca/templates/bounca.service.j2
Normal file
17
roles/unmaintained/bounca/templates/bounca.service.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=BounCA PKI Daemon
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Environment=PYTHONPATH=/usr/bin/python34
|
||||
ExecStart=/usr/sbin/uwsgi --ini /etc/bounca/uwsgi.ini
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
User={{ bounca_user }}
|
||||
Group={{ bounca_user }}
|
||||
KillSignal=SIGINT
|
||||
Restart=always
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
roles/unmaintained/bounca/templates/main.ini.j2
Normal file
14
roles/unmaintained/bounca/templates/main.ini.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
[database]
|
||||
DATABASE_USER: {{ bounca_db_user }}
|
||||
DATABASE_PASSWORD: {{ bounca_db_pass }}
|
||||
DATABASE_HOST: {{ bounca_db_server }}
|
||||
DATABASE_NAME: {{ bounca_db_name }}
|
||||
|
||||
[secrets]
|
||||
SECRET_KEY: {{ bounca_secret_key }}
|
||||
|
||||
[email]
|
||||
EMAIL_HOST: localhost
|
||||
ADMIN_MAIL: {{ bounca_admin_mail }}
|
||||
FROM_MAIL: {{ bounca_from_mail }}
|
||||
|
17
roles/unmaintained/bounca/templates/uwsgi.ini.j2
Normal file
17
roles/unmaintained/bounca/templates/uwsgi.ini.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
[uwsgi]
|
||||
plugin = python3
|
||||
thread = 4
|
||||
master = 1
|
||||
processes = 30
|
||||
vacuum = true
|
||||
http11-socket = 0.0.0.0:{{ bounca_port }}
|
||||
chdir = {{ bounca_root_dir }}/app
|
||||
home = {{ bounca_root_dir }}
|
||||
module = bounca.wsgi
|
||||
check-static = {{ bounca_root_dir }}/app/media
|
||||
static-skip-ext = .php
|
||||
static-skip-ext = .cgi
|
||||
static-skip-ext = .py
|
||||
offload-threads = 4
|
||||
cache2 = name=bounca,items=200
|
||||
static-cache-paths = 300
|
Reference in New Issue
Block a user