mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-04 09:21:42 +02:00
Replaced nginx native with openresty for logout injection. Right now still buggy on nextcloud and espocrm
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
---
|
||||
- name: Validate Nginx configuration
|
||||
command: nginx -t
|
||||
register: nginx_test
|
||||
changed_when: false
|
||||
failed_when: nginx_test.rc != 0
|
||||
listen: restart nginx
|
||||
|
||||
- name: restart nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
enabled: yes
|
||||
listen: restart nginx
|
@@ -1,11 +1,18 @@
|
||||
---
|
||||
- name: install nginx
|
||||
pacman:
|
||||
name:
|
||||
- nginx
|
||||
- nginx-mod-stream
|
||||
state: present
|
||||
notify: restart nginx
|
||||
|
||||
- name: "Store 'application_id' : {{ application_id }}"
|
||||
set_fact:
|
||||
original_application_id: "{{ application_id }}"
|
||||
when: run_once_srv_web_core is not defined
|
||||
|
||||
- name: Include openresty
|
||||
include_role:
|
||||
name: svc-prx-openresty
|
||||
when: run_once_srv_web_core is not defined
|
||||
|
||||
- name: "Restore 'application_id':\n Current: {{ application_id }}\n Restored: {{ original_application_id }}"
|
||||
set_fact:
|
||||
application_id: "{{ original_application_id }}"
|
||||
when: run_once_srv_web_core is not defined
|
||||
|
||||
- name: "reset (if enabled)"
|
||||
@@ -46,8 +53,8 @@
|
||||
- name: create nginx config file
|
||||
template:
|
||||
src: nginx.conf.j2
|
||||
dest: /etc/nginx/nginx.conf
|
||||
notify: restart nginx
|
||||
dest: "{{ nginx.files.configuration }}"
|
||||
notify: restart openresty
|
||||
when: run_once_srv_web_core is not defined
|
||||
|
||||
- name: flush nginx service
|
||||
|
@@ -1,4 +1,3 @@
|
||||
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
|
||||
worker_processes auto;
|
||||
|
||||
events
|
||||
@@ -33,11 +32,11 @@ http
|
||||
'"ConnRequests: $connection_requests" '
|
||||
'"X-Forwarded-For: $http_x_forwarded_for" '
|
||||
'"Scheme: $scheme" "Protocol: $server_protocol" "ServerName: $server_name"';
|
||||
access_log syslog:server=unix:/dev/log debug;
|
||||
access_log /dev/stdout debug;
|
||||
{% else %}
|
||||
access_log syslog:server=unix:/dev/log;
|
||||
access_log /dev/stdout debug;
|
||||
{% endif %}
|
||||
error_log syslog:server=unix:/dev/log;
|
||||
error_log /dev/stderr info;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
Reference in New Issue
Block a user