adds pseudo.cortex.consider-funding.de upstream, adds snippet for easy oauth2-proxy protect, moves oauth2-proxy secrets to .env file

This commit is contained in:
2025-08-12 11:22:18 +02:00
parent 51b8fa2b8c
commit 786a581d2f
6 changed files with 45 additions and 20 deletions

1
.gitignore vendored
View File

@@ -1,7 +1,6 @@
.DS_Store
.env
oauth2-proxy.cfg
CLAUDE.md
GEMINI.md

View File

@@ -0,0 +1,4 @@
OAUTH2_PROXY_CLIENT_ID = ""
OAUTH2_PROXY_CLIENT_SECRET = ""
OAUTH2_PROXY_COOKIE_SECRET = ""
OAUTH2_PROXY_OIDC_ISSUER_URL = ""

View File

@@ -5,6 +5,7 @@ services:
restart: unless-stopped
command:
- --config=/etc/oauth2-proxy/oauth2-proxy.cfg
env_file: .env
volumes:
- ./oauth2-proxy.cfg:/etc/oauth2-proxy/oauth2-proxy.cfg:ro
networks:

View File

@@ -0,0 +1,9 @@
provider = "entra-id"
upstreams = ["file:///dev/null"]
http_address = "0.0.0.0:4180"
whitelist_domains = [".consider-it.de", ".consider-funding.de"]
cookie_secure = true
email_domains = [ "*" ]
scope = "openid"
skip_provider_button = true
set_xauthrequest = true

View File

@@ -1,12 +0,0 @@
provider = "entra-id"
oidc_issuer_url = "https://login.microsoftonline.com/xxx-x-x-x-xxxx/v2.0"
client_id = ""
client_secret = ""
cookie_secret = ""
upstreams = [ "http://stirling-pdf:8080" ]
http_address = "0.0.0.0:4180"
redirect_url = "https://pdf.consider-it.de/oauth2/callback"
cookie_secure = true
email_domains = [ "*" ]
scope = "openid"
skip_provider_button = true

View File

@@ -1,13 +1,37 @@
pdf.consider-it.de {
reverse_proxy oauth2-proxy:4180
(oauth2_protect) {
handle /oauth2/* {
reverse_proxy oauth2-proxy:4180
}
handle {
forward_auth oauth2-proxy:4180 {
uri /oauth2/auth
copy_headers Authorization
@bad status 4xx
handle_response @bad {
redir https://{args.0}/oauth2/start
}
}
reverse_proxy {args.1}
}
}
metabase.consider-it.de {
reverse_proxy metabase:3000
pseudo.cortex.consider-funding.de {
import oauth2_protect pseudo.cortex.consider-funding.de http://10.20.0.2:5000
}
pdf.consider-it.de {
import oauth2_protect pdf.consider-it.de http://stirling-pdf:8080
}
n8n.consider-funding.de {
reverse_proxy n8n:5678 {
flush_interval -1
}
reverse_proxy n8n:5678 {
flush_interval -1
}
}
metabase.consider-it.de {
reverse_proxy metabase:3000
}