mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
get the changes tied down a little
This commit is contained in:
parent
caf1a250c5
commit
6998f0c030
3 changed files with 5 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
[uwsgi]
|
||||
uid = {{ apache_user }}
|
||||
gid = {{ apache_user }}
|
||||
http-socket = {{ captiveportal_port }}
|
||||
http-socket = :{{ captiveportal_port }}
|
||||
chdir = /opt/iiab/captiveportal
|
||||
wsgi-file = capture-wsgi.py
|
||||
master = true
|
||||
plugins = python3
|
||||
log-to = /var/log/apache2/captiveportal.log
|
||||
log-to = /var/log/apache2/portal.log
|
||||
py-autoreload = 2
|
||||
|
|
|
@ -39,7 +39,8 @@ doc_root = get_iiab_env("WWWROOT")
|
|||
fully_qualified_domain_name = get_iiab_env("FQDN")
|
||||
|
||||
|
||||
loggingLevel = "ERROR"
|
||||
#loggingLevel = "ERROR"
|
||||
loggingLevel = "DEBUG"
|
||||
if len(sys.argv) > 1:
|
||||
if sys.argv[1] == '-l':
|
||||
loggingLevel = "DEBUG"
|
||||
|
@ -156,7 +157,6 @@ def microsoft(environ,start_response):
|
|||
if agent.startswith('Mozilla'):
|
||||
logger.debug("sending microsoft redirect for agent Mozilla")
|
||||
return home(environ, start_response)
|
||||
logger.debug("sending microsoft redirect")
|
||||
response_body = b""
|
||||
status = '302 Moved Temporarily'
|
||||
response_headers = [('Location','http://' + fully_qualified_domain_name + '{{ captiveportal_splash_page }}'),
|
||||
|
|
|
@ -147,6 +147,7 @@ dns_jail_enabled: False
|
|||
captiveportal_install: False
|
||||
captiveportal_enabled: False
|
||||
captiveportal_port: 9090
|
||||
captiveportal_splash_page: /
|
||||
# In a pinch, disable Captive Portal using instructions in http://FAQ.IIAB.IO
|
||||
|
||||
# Bluetooth PAN access to IIAB server
|
||||
|
|
Loading…
Add table
Reference in a new issue