1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

jvonau suggested changes

This commit is contained in:
George Hunt 2019-12-19 14:32:18 +00:00
parent 21cd58e6ae
commit a2a13a3f99
2 changed files with 9 additions and 14 deletions

View file

@ -38,8 +38,8 @@
- name: Copy uWSGI config file - name: Copy uWSGI config file
template: template:
src: roles/captiveportal/templates/captiveportal.ini src: roles/captiveportal/templates/captiveportal.ini.j2
dest: /opt/iiab/captiveportal/ dest: /opt/iiab/captiveportal/captiveportal.ini
- name: Copy unit file for uWSGI service - name: Copy unit file for uWSGI service
template: template:
@ -75,6 +75,13 @@
state: link state: link
when: captiveportal_enabled | bool when: captiveportal_enabled | bool
- name: Disable nginx to location definitions for checkurls
file:
src: /etc/nginx/sites-available/capture.conf
path: /etc/nginx/sites-enabled/capture.conf
state: absent
when: not captiveportal_enabled | bool
- name: Make sure dnsmasq is not diverting if not captiveportal_enabled - name: Make sure dnsmasq is not diverting if not captiveportal_enabled
file: file:
path: /etc/dnsmasq.d/capture path: /etc/dnsmasq.d/capture

View file

@ -1,12 +0,0 @@
[uwsgi]
uid = www-data
gid = www-data
http-socket = :9090
chdir = /opt/iiab/captiveportal
wsgi-file = capture-wsgi.py
#wsgi-file = very_simple.py
master = true
plugins = python3
log-to = /var/log/uwsgi/app/captiveportal.log
#die-on-term = true
py-autoreload = 2