added static Access Point and Captive Portal and some small adjustments

This commit is contained in:
Helva
2026-02-08 18:51:19 +01:00
parent c2bb45ac5a
commit 29b1e5c29d
12 changed files with 101 additions and 2 deletions
@@ -0,0 +1,16 @@
# --- Captive Portal Trigger (Android/iOS/Windows) ---
# Android / Google connectivity check
location = /generate_204 { return 302 /; }
location = /gen_204 { return 302 /; }
# iOS/macOS captive check
location = /hotspot-detect.html { return 200 '<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>OK</BODY></HTML>'; add_header Content-Type text/html; }
location = /library/test/success.html { return 302 /; }
# Windows NCSI check
location = /ncsi.txt { return 302 /; }
location = /connecttest.txt { return 302 /; }
# Optional: Android “portal” URL
location = /captiveportal { return 302 /; }
+2 -2
View File
@@ -1,6 +1,6 @@
location ^~ /drive/ {
alias /opt/helva-robot/drive/var/www/drive/;
location ^~ /drive {
alias /opt/helva-robot/drive/var/www/drive;
try_files $uri $uri/ /drive/index.html;
}