From 58bc66c499188e83b0fc0b7fb758eeffe18bff45 Mon Sep 17 00:00:00 2001 From: Andrew Doering Date: Wed, 18 May 2022 22:35:06 +0200 Subject: [PATCH 1/2] Add section for API and companion app. --- grocy.subdomain.conf.sample | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/grocy.subdomain.conf.sample b/grocy.subdomain.conf.sample index 3197462..906b594 100644 --- a/grocy.subdomain.conf.sample +++ b/grocy.subdomain.conf.sample @@ -37,4 +37,17 @@ server { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } + + location /api { + # Needed as a separate endpoint if using Authelia and a + # companion application, they cannot work due to the endpoint. + # If you do not use a companion app, comment out this API Entry. + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app grocy; + set $upstream_port 80; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } } From 0d3698b9d11421e4fdd5a20c7c073a665e3495ff Mon Sep 17 00:00:00 2001 From: Andrew Doering Date: Wed, 18 May 2022 23:20:35 +0200 Subject: [PATCH 2/2] Update grocy.subdomain.conf.sample Removed disclaimer --- grocy.subdomain.conf.sample | 4 ---- 1 file changed, 4 deletions(-) diff --git a/grocy.subdomain.conf.sample b/grocy.subdomain.conf.sample index 906b594..239f10c 100644 --- a/grocy.subdomain.conf.sample +++ b/grocy.subdomain.conf.sample @@ -39,10 +39,6 @@ server { } location /api { - # Needed as a separate endpoint if using Authelia and a - # companion application, they cannot work due to the endpoint. - # If you do not use a companion app, comment out this API Entry. - include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app grocy;