mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	jvonau suggested changes
This commit is contained in:
		
							parent
							
								
									b10be9c200
								
							
						
					
					
						commit
						caf1a250c5
					
				
					 2 changed files with 9 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -38,8 +38,8 @@
 | 
			
		|||
 | 
			
		||||
- name: Copy uWSGI config file
 | 
			
		||||
  template:
 | 
			
		||||
    src: roles/captiveportal/templates/captiveportal.ini
 | 
			
		||||
    dest: /opt/iiab/captiveportal/
 | 
			
		||||
    src: roles/captiveportal/templates/captiveportal.ini.j2
 | 
			
		||||
    dest: /opt/iiab/captiveportal/captiveportal.ini
 | 
			
		||||
 | 
			
		||||
- name: Copy unit file for uWSGI service
 | 
			
		||||
  template:
 | 
			
		||||
| 
						 | 
				
			
			@ -75,6 +75,13 @@
 | 
			
		|||
    state: link
 | 
			
		||||
  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
 | 
			
		||||
  file:
 | 
			
		||||
    path: /etc/dnsmasq.d/capture
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue