add oauth2-proxy

This commit is contained in:
jlssmt 2025-08-23 22:47:18 +02:00
parent 640053d452
commit cab9f12d69
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
## Version 2025/07/18
## Version 2025/08/23
# REMOVE THIS LINE BEFORE SUBMITTING: The structure of the file (all of the existing lines) should be kept as close as possible to this template.
# REMOVE THIS LINE BEFORE SUBMITTING: Look through this file for <tags> and replace them. Review other sample files to see how things are done.
# REMOVE THIS LINE BEFORE SUBMITTING: The comment lines at the top of the file (below this line) should explain any prerequisites for using the proxy such as DNS or app settings.
@ -26,6 +26,9 @@ server {
# enable for Authentik (requires authentik-location.conf in the location block)
#include /config/nginx/authentik-server.conf;
# enable for OAuth2 Proxy (requires oauth2-proxy-location.conf in the location block)
#include /config/nginx/oauth2-proxy-server.conf;
# enable for Tinyauth (requires tinyauth-location.conf in the location block)
#include /config/nginx/tinyauth-server.conf;
@ -43,6 +46,9 @@ server {
# enable for Authentik (requires authentik-server.conf in the server block)
#include /config/nginx/authentik-location.conf;
# enable for OAuth2 Proxy (requires oauth2-proxy-server.conf in the server block)
#include /config/nginx/oauth2-proxy-location.conf;
# enable for Tinyauth (requires tinyauth-server.conf in the server block)
#include /config/nginx/tinyauth-location.conf;

View File

@ -1,4 +1,4 @@
## Version 2023/02/05
## Version 2023/08/23
# REMOVE THIS LINE BEFORE SUBMITTING: The structure of the file (all of the existing lines) should be kept as close as possible to this template.
# REMOVE THIS LINE BEFORE SUBMITTING: Look through this file for <tags> and replace them. Review other sample files to see how things are done.
# REMOVE THIS LINE BEFORE SUBMITTING: The comment lines at the top of the file (below this line) should explain any prerequisites for using the proxy such as DNS or app settings.
@ -24,6 +24,12 @@ location ^~ /<container_name>/ {
# enable for Authentik (requires authentik-server.conf in the server block)
#include /config/nginx/authentik-location.conf;
# enable for OAuth2 Proxy (requires oauth2-proxy-server.conf in the server block)
#include /config/nginx/oauth2-proxy-location.conf;
# enable for Tinyauth (requires tinyauth-server.conf in the server block)
#include /config/nginx/tinyauth-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app <container_name>;