Skip to content
Snippets Groups Projects
Commit 36bc34ae authored by Lars Beckers's avatar Lars Beckers
Browse files

uwsgi: wahlsystem-2018, plus related fixes for shibd

parent e8cc3f14
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,4 @@
systemd: name=supervisor state=reloaded
- name: reload shibd
systemd: name=shibd state=reloaded
systemd: name=shibd state=restarted
---
# file: webservices/shibboleth/tasks/main.yml
- name: activate the shibboleth apt repository
apt_repository:
# yamllint disable-line rule:line-length
repo: "deb [arch=amd64] https://repo.fsmpi.rwth-aachen.de/ {{ansible_facts.distribution_release}} shibboleth"
state: present
notify:
- update apt cache
tags:
- packages
- repos
- shibboleth
- meta: flush_handlers
- name: install the required packages for shibboleth
apt:
name:
- nginx-extras
- nginx-full
- libnginx-mod-http-shibboleth
- libnginx-mod-http-headers-more-filter
- supervisor
......@@ -78,7 +63,7 @@
- name: put the nginx example snippet there
copy:
src: nginx-snippet.conf
dest: /etc/nginx/snippets/
dest: /etc/nginx/snippets/shibd.conf
owner: root
group: root
mode: '0644'
......
......@@ -45,6 +45,9 @@
service: name="wahlsystem-celery" state=restarted
listen: "restart uwsgi instance wahlsystem"
- name: restart uwsgi instance wahlsystem-2018
service: name="uwsgi@wahlsystem-2018" state=restarted
- name: restart uwsgi instance meckerkasten
service: name="uwsgi@meckerkasten" state=restarted
......
---
app_name: wahlsystem-2018
app_user: wahl
app_group: wahl
app_home: /var/www/wahlsystem-2018
app_path: /var/www/wahlsystem-2018/program
app_python_version: 3
app_enable_threads: true
app_harakiri: 120
app_venv: /var/www/wahlsystem-2018/program
app_program: server.py
app_callable: app
app_command: "runserver"
app_mountpoint: /
app_db_name: wahl2018
app_db_type: postgres
app_additional_software: []
app_deploy_key: "{{ inventory_dir }}/files/deploy-keys/wahlsystem-2018"
app_git_url: "git@git.stud.rwth-aachen.de:wahlausschuss/website.git"
app_git_version: HEAD
app_requirements_file: requirements.txt
app_config_file: ""
app_secret_config: false
......@@ -2,9 +2,7 @@ user nginx-proxy;
worker_processes {{ webserver_workers }};
worker_rlimit_nofile {{ webserver_worker_rlimit_nofile|default(100000) }};
pid /run/nginx-proxy.pid;
{% if debian_version == "stretch" %}
include /etc/nginx/modules-enabled/*.conf;
{% endif %}
pcre_jit on;
events {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment