mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Add section for API and companion app.
This commit is contained in:
parent
ae92317595
commit
58bc66c499
1 changed files with 13 additions and 0 deletions
|
@ -37,4 +37,17 @@ server {
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue