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; + } }