adds oauth2-proxy to sterling-pdf

This commit is contained in:
2025-07-03 11:32:19 +02:00
parent 6bcc8ebe4c
commit 48efff09b8
6 changed files with 43 additions and 10 deletions

View File

@@ -7,8 +7,6 @@ services:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
restart: unless-stopped
ports:
- "127.0.0.1:5678:5678"
environment:
- GENERIC_TIMEZONE=Europe/Berlin
- N8N_HOST=n8n.consider-funding.de
@@ -19,3 +17,9 @@ services:
volumes:
- /ansible_docker_compose/project_data/n8n/data:/home/node/.n8n
- /ansible_docker_compose/project_data/n8n/files:/files
networks:
- caddy_net
networks:
caddy_net:
external: true

View File

@@ -0,0 +1,12 @@
provider = "entra-id"
oidc_issuer_url = ""
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,9 +1,9 @@
pdf.consider-it.de {
reverse_proxy 127.0.0.1:8080
reverse_proxy oauth2-proxy:4180
}
n8n.consider-funding.de {
reverse_proxy 127.0.0.1:5678 {
reverse_proxy n8n:5678 {
flush_interval -1
}
}

View File

@@ -5,8 +5,17 @@
services:
caddy:
image: caddy
container_name: caddy
restart: unless-stopped
network_mode: host
ports:
- "80:80"
- "443:443"
volumes:
- "./Caddyfile:/etc/caddy/Caddyfile:ro"
- "/ansible_docker_compose/project_data/reverse-proxy/caddy/data:/data"
networks:
- caddy_net
networks:
caddy_net:
name: caddy_net

View File

@@ -8,20 +8,26 @@
services:
stirling-pdf:
image: frooodle/s-pdf:latest
container_name: stirling-pdf
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- "./customFiles/static/:/customFiles/static/:ro"
- "/ansible_docker_compose/project_data/stirling-pdf/logs/:/logs/:rw"
- "/ansible_docker_compose/project_data/stirling-pdf/tessdata:/usr/share/tessdata:rw"
- "/ansible_docker_compose/project_data/stirling-pdf/configs/:/configs/:rw"
- "/ansible_docker_compose/project_data/stirling-pdf/logs/:/logs/:rw"
- "./customFiles/static/:/customFiles/static/:ro"
environment:
DOCKER_ENABLE_SECURITY: "false"
SECURITY_ENABLE_LOGIN: "false"
LANGS: "en_GB,en_US,ar_AR,de_DE,fr_FR,es_ES,zh_CN,zh_TW,ca_CA,it_IT,sv_SE,pl_PL,ro_RO,ko_KR,pt_BR,ru_RU,el_GR,hi_IN,hu_HU,tr_TR,id_ID"
SYSTEM_DEFAULT_LOCALE: de-DE
SYSTEM_GOOGLEVISIBILITY: "false"
UI_APPNAME: "consider it PDF"
UI_HOMEDESCRIPTION: "Impressum: https://consider-it.de/impressum/ Datenschutz: https://consider-it.de/datenschutzerklaerung/"
SYSTEM_GOOGLEVISIBILITY: "false"
METRICS_ENABLED: "false"
SYSTEM_ENABLEANALYTICS: "false"
networks:
- caddy_net
networks:
caddy_net:
external: true

View File

@@ -5,3 +5,5 @@ docker_compose__projects:
files_directory: ../docker_compose_applications/stirling-pdf
- name: n8n
files_directory: ../docker_compose_applications/n8n
- name: oauth2-proxy
files_directory: ../docker_compose_applications/oauth2-proxy