-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split nginx config and tested with latest RPi OS.
Tested with Raspberry Pi OS based on Debian version: 11 (bullseye) Split nginx configuration into two files to separate the captive portal site from the content site. This allows for easier customization of the content site.
- Loading branch information
Showing
10 changed files
with
125 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
rogueportal (1.4) stable; urgency=medium | ||
|
||
* Tested with Raspberry Pi OS based on Debian version: 11 (bullseye) | ||
* Split nginx configuration into two files to separate the captive portal site | ||
from the content site. This allows for easier customization of the content | ||
site. | ||
|
||
-- Jerry Ryle <[email protected]> Thu, 23 Mar 2023 11:20:00 -0800 | ||
|
||
rogueportal (1.3) buster; urgency=medium | ||
|
||
* Added support for RFC 8910 (https://datatracker.ietf.org/doc/html/rfc8910) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 0 additions & 28 deletions
28
files/rogueportal/etc/nginx/sites-available/default.rogueportal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
files/rogueportal/etc/nginx/sites-available/roguecontent.rogueportal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# The go.rogueportal server | ||
# This handles any request that includes go.rogueportal as the server name. | ||
# You can update this to serve your own content, proxy to another server, etc. | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name go.rogueportal; | ||
|
||
# Only allow GET, HEAD, POST | ||
if ($request_method !~ ^(GET|HEAD|POST)$) { return 444; } | ||
|
||
# Logs | ||
access_log /var/log/nginx/rogueportal.access.log; | ||
error_log /var/log/nginx/rogueportal.error.log warn; | ||
|
||
root /var/www/html; | ||
|
||
index index.html; | ||
|
||
location / { | ||
# First attempt to serve request as file, then | ||
# as directory, then fall back to displaying a 404. | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
# Redirect these errors to the home page. | ||
error_page 401 403 404 =200 /index.html; | ||
} |