Skip to content

dinger1986/unifi-captive-portal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniFi Captive Portal

A UniFi external captive portal which captures email addresses and saves them to a csv file, plan will be to email automatically on a set schedule. Header image will also be added and will be able to be changed.

Running

There are two important directories that need to be on disk in order for this program to run: assets and templates. Assets holds CSS/JS/IMG assets. Templates holds the various HTML templates.

If you would like to add custom elements (such as a header image) feel free. The CSS library used is Semantic UI so refer to their documentation if you would like to modify the look.

See the configuration section below for more information regarding the config file. You will need to specify its location along with the assets and templates directories.

Also, due to a limitation in the UniFi controller software, external portals must run on port 80.

Installation

Built and tested on Ubuntu 20.04 and Debian 11

wget https://raw.githubusercontent.com/dinger1986/unifi-captive-portal/master/install.sh
chmod +x install.sh
./install.sh

About

UniFi external captive portal which captures email addresses

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 50.1%
  • Shell 24.6%
  • HTML 15.6%
  • Python 9.7%