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
							
								
									d3f44dd145
								
							
						
					
					
						commit
						bda6e189c0
					
				
					 3 changed files with 19 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 | ||||
							
								
								
									
										10
									
								
								roles/captiveportal/templates/captiveportal.ini.j2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								roles/captiveportal/templates/captiveportal.ini.j2
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| [uwsgi] | ||||
|    uid = {{ apache_user }} | ||||
|    gid = {{ apache_user }} | ||||
|    http-socket = {{ captiveportal_port }} | ||||
|    chdir = /opt/iiab/captiveportal | ||||
|    wsgi-file = capture-wsgi.py | ||||
|    master = true | ||||
|    plugins = python3 | ||||
|    log-to = /var/log/apache2/captiveportal.log | ||||
|    py-autoreload = 2 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue