puppet/modules/rhizo_base/templates/portal.conf.erb
Keith Whyte c749dd35f8 Wifi Captive Portal
An implementation of a simple Captive Portal that allows
access to an IP network via forwarding on the same machine
running the GSM core network.

A Wifi AP could be connected to the ethernet port
specified in the hiera as wifi_if (default eth3)
Any Wifi AP can be used, and configured as desired.

In the future, maybe a RADIUS based solution could
supercede this.
2023-08-22 01:52:59 +02:00

22 lines
498 B
Text

<Directory /var/rhizomatica/portal>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ http://<%= @wifi_ip %>/index.php [R]
Require all granted
</Directory>
<VirtualHost <%= @wifi_ip %>:81>
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/rhizomatica/portal
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/portal_error.log
CustomLog ${APACHE_LOG_DIR}/portal_access.log combined
</VirtualHost>