Add section for API and companion app.

This commit is contained in:
Andrew Doering 2022-05-18 22:35:06 +02:00 committed by GitHub
parent ae92317595
commit 58bc66c499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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