added static Access Point and Captive Portal and some small adjustments
This commit is contained in:
@@ -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 /; }
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user