From 319d7c3e1d018de3c17b6807bcff9ecb51737810 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Wed, 16 Mar 2022 18:13:17 -0700 Subject: [PATCH] move perms to proper spot in config --- guide/install.md | 2 +- guide/secure.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/install.md b/guide/install.md index 197269c..b97ab60 100644 --- a/guide/install.md +++ b/guide/install.md @@ -71,10 +71,10 @@ $ sudo chmod a+rx /usr/local/bin/nvr ```toml [[binds]] ipv4 = "0.0.0.0:8080" +allow_unauthenticated_permissions = { view_video = true } [[binds]] unix = "/var/lib/moonfire-nvr/sock" -allow_unauthenticated_permissions = { view_video = true } own_uid_is_privileged = true ``` diff --git a/guide/secure.md b/guide/secure.md index 965591c..41ae2ef 100644 --- a/guide/secure.md +++ b/guide/secure.md @@ -178,7 +178,7 @@ This change has two effects: * No `allow_unauthenticated_permissions` means that web users must authenticate. - * `trust-forward-headers` means that Moonfire NVR will look for `X-Real-IP` + * `trust_forward_headers` means that Moonfire NVR will look for `X-Real-IP` and `X-Forwarded-Proto` headers as added by the webserver configuration in the next section.