TRUSTED_NETWORKS=connected: requests from the subnets the server's interfaces are on right now count as logged in (the car's server, whichever Wi-Fi it's on); CIDRs still work alongside
This commit is contained in:
1 parent
ea14b110e6
commit
62045be0f7
3 files changed
+26
-5
No files matched your search
@@ -184,9 +184,10 @@ working tree rsynced into `build/`), not by CI.
|
||||
|
||||
Its `.env` adds:
|
||||
|
||||
* `TRUSTED_NETWORKS` — the home/car LAN (and loopback): those requests
|
||||
* `TRUSTED_NETWORKS=connected` — requests from the subnets the Pi is
|
||||
directly on (whichever Wi-Fi/LAN, looked up per request; loopback too)
|
||||
count as logged in, since Gitea's OAuth needs internet and its redirect
|
||||
URL is brick's. Only on a server no reverse proxy sits in front of —
|
||||
URL is brick's. Comma-separated CIDRs work too, also next to `connected`. Only on a server no reverse proxy sits in front of —
|
||||
never on brick, where every request comes from the proxy.
|
||||
* `TAKEOUT_HOST_DIR` — an empty directory (the Takeout import is brick's).
|
||||
* `SYNC_SERVER_URL` (`https://map.priesol.net`) and `SYNC_TOKEN`: it's a sync client.
|
||||
|
||||
Reference in new issue
Block a user