Restrict admin to local connections
This commit is contained in:
@@ -21,6 +21,7 @@ Required production environment:
|
||||
PORT=2354
|
||||
HOST=0.0.0.0
|
||||
APP_MODE=all
|
||||
ADMIN_ALLOWED_HOSTS=admin.local,l484.local
|
||||
MEMBERSHIP_ENCRYPTION_KEY=<32+ random bytes>
|
||||
ACCESS_HMAC_KEY=<32+ random bytes>
|
||||
ACCESS_CONTROLLER_TOKEN=<random controller token>
|
||||
@@ -35,6 +36,8 @@ DEV_SEED_MEMBERS=false
|
||||
|
||||
Keep `server/data` on a persistent volume. Do not deploy `.env.local`.
|
||||
|
||||
The admin UI, admin APIs, and controller card-scan endpoint are available only when the request comes from localhost, a private LAN IP, a `.local` hostname, or a hostname listed in `ADMIN_ALLOWED_HOSTS`. Public members can still use `/api/member/door/unlock` from the external site when their local membership secret verifies an active paid membership.
|
||||
|
||||
## BTCPay
|
||||
|
||||
Create a BTCPay webhook pointing at:
|
||||
|
||||
Reference in New Issue
Block a user