Skip to content

Commit cab9f12

Browse files
committed
add oauth2-proxy
1 parent 640053d commit cab9f12

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

_template.subdomain.conf.sample

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2025/07/18
1+
## Version 2025/08/23
22
# 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.
33
# REMOVE THIS LINE BEFORE SUBMITTING: Look through this file for <tags> and replace them. Review other sample files to see how things are done.
44
# 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 {
2626
# enable for Authentik (requires authentik-location.conf in the location block)
2727
#include /config/nginx/authentik-server.conf;
2828

29+
# enable for OAuth2 Proxy (requires oauth2-proxy-location.conf in the location block)
30+
#include /config/nginx/oauth2-proxy-server.conf;
31+
2932
# enable for Tinyauth (requires tinyauth-location.conf in the location block)
3033
#include /config/nginx/tinyauth-server.conf;
3134

@@ -43,6 +46,9 @@ server {
4346
# enable for Authentik (requires authentik-server.conf in the server block)
4447
#include /config/nginx/authentik-location.conf;
4548

49+
# enable for OAuth2 Proxy (requires oauth2-proxy-server.conf in the server block)
50+
#include /config/nginx/oauth2-proxy-location.conf;
51+
4652
# enable for Tinyauth (requires tinyauth-server.conf in the server block)
4753
#include /config/nginx/tinyauth-location.conf;
4854

_template.subfolder.conf.sample

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/02/05
1+
## Version 2023/08/23
22
# 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.
33
# REMOVE THIS LINE BEFORE SUBMITTING: Look through this file for <tags> and replace them. Review other sample files to see how things are done.
44
# 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>/ {
2424
# enable for Authentik (requires authentik-server.conf in the server block)
2525
#include /config/nginx/authentik-location.conf;
2626

27+
# enable for OAuth2 Proxy (requires oauth2-proxy-server.conf in the server block)
28+
#include /config/nginx/oauth2-proxy-location.conf;
29+
30+
# enable for Tinyauth (requires tinyauth-server.conf in the server block)
31+
#include /config/nginx/tinyauth-location.conf;
32+
2733
include /config/nginx/proxy.conf;
2834
include /config/nginx/resolver.conf;
2935
set $upstream_app <container_name>;

0 commit comments

Comments
 (0)