How captainmccrank/instant_community_wifi_portal works
Project type and purpose
• This is an Ansible-driven firmware/configuration project for a Raspberry Pi that creates an offline Wi-Fi access point (“JoinMe”) with a captive portal image board (Werc-based) and a local media library.
File structure
• Top level: Ansible playbook (run.yml) + roles/system (tasks for hostapd, dnsmasq, nginx, nodogsplash, icecast2, firewall, etc.)
• /etc and /usr/local: configuration templates for network services (hostapd, dnsmasq, avahi, lighttpd, nginx, nodogsplash, Icecast2)
• /var/www/ansibledest.local: Werc-powered CGI image board source (apps, bin scripts, templates, lib, offgrid media)
• /var/www/html: static web assets (HTML5Up theme, CSS, JS)
• /usr/local/bin + /var/ices: custom scripts to launch ices/icecast streaming
README
• Describes purpose: turn Pi into isolated AP, captive-portal image board, off-grid neighbor network, optional static library & streaming.
• Mentions Ansible orchestration or Docker-based builder.
Main components & interactions
a. Hardware & OS
• Raspberry Pi running Raspbian (Linux)
b. Configuration Management
• Ansible playbook + roles pushes config files & systemd units
c. Network Stack
• hostapd: creates “JoinMe” SSID
• dnsmasq: DHCP + DNS, directs all HTTP to local portal
• firewall (nftables/iptables): blocks Internet, allows internal services
d. Captive Portal
• nodogsplash: intercepts HTTP, serves portal splash page
e. Web Servers & Apps
• lighttpd/nginx: serves the Werc CGI image board (dynamic) under /var/www/ansibledest.local
• static files served under /var/www/html (media library, theme assets)
f. Streaming Service (optional)
• icecast2 + ices-source: streams mp3 from /var/ices; controlled by LaunchIces.sh
Architectural patterns & design principles
• Infrastructure-as-Code (Ansible roles/modules)
• Layered separation:
• Infra layer (network services)
• App layer (web/Captive portal)
• Data layer (static content/media files)
• Systemd timers/services for periodic tasks (e.g., register-device, ices_source)