mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-10-03 00:46:18 +00:00
popup-homelab
This commit is contained in:
1
Popup-Homelab/docker/traefik/acme.json
Normal file
1
Popup-Homelab/docker/traefik/acme.json
Normal file
@@ -0,0 +1 @@
|
||||
remember to chmod this to 600!!!
|
40
Popup-Homelab/docker/traefik/config.yaml
Normal file
40
Popup-Homelab/docker/traefik/config.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
http:
|
||||
middlewares:
|
||||
crowdsec-bouncer:
|
||||
forwardauth:
|
||||
address: http://bouncer-traefik:8080/api/v1/forwardAuth
|
||||
trustForwardHeader: true
|
||||
# https://github.com/goauthentik/authentik/issues/2366
|
||||
middlewares-authentik:
|
||||
forwardAuth:
|
||||
address: "http://authentik_server:9000/outpost.goauthentik.io/auth/traefik"
|
||||
trustForwardHeader: true
|
||||
authResponseHeaders:
|
||||
- X-authentik-username
|
||||
- X-authentik-groups
|
||||
- X-authentik-email
|
||||
- X-authentik-name
|
||||
- X-authentik-uid
|
||||
- X-authentik-jwt
|
||||
- X-authentik-meta-jwks
|
||||
- X-authentik-meta-outpost
|
||||
- X-authentik-meta-provider
|
||||
- X-authentik-meta-app
|
||||
- X-authentik-meta-version
|
||||
default-security-headers:
|
||||
headers:
|
||||
customBrowserXSSValue: 0 # X-XSS-Protection=1; mode=block
|
||||
contentTypeNosniff: true # X-Content-Type-Options=nosniff
|
||||
forceSTSHeader: true # Add the Strict-Transport-Security header even when the connection is HTTP
|
||||
frameDeny: false # X-Frame-Options=deny
|
||||
referrerPolicy: "strict-origin-when-cross-origin"
|
||||
stsIncludeSubdomains: true # Add includeSubdomains to the Strict-Transport-Security header
|
||||
stsPreload: true # Add preload flag appended to the Strict-Transport-Security header
|
||||
stsSeconds: 3153600 # Set the max-age of the Strict-Transport-Security header (63072000 = 2 years)
|
||||
contentSecurityPolicy: "default-src 'self'"
|
||||
customRequestHeaders:
|
||||
X-Forwarded-Proto: https
|
||||
https-redirectscheme:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true
|
49
Popup-Homelab/docker/traefik/traefik.yaml
Normal file
49
Popup-Homelab/docker/traefik/traefik.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
api:
|
||||
dashboard: true
|
||||
debug: true
|
||||
entryPoints:
|
||||
http:
|
||||
address: ":80"
|
||||
http:
|
||||
middlewares:
|
||||
- crowdsec-bouncer@file
|
||||
redirections:
|
||||
entrypoint:
|
||||
to: https
|
||||
scheme: https
|
||||
https:
|
||||
address: ":443"
|
||||
http:
|
||||
middlewares:
|
||||
- crowdsec-bouncer@file
|
||||
tcp:
|
||||
address: ":10000"
|
||||
apis:
|
||||
address: ":33073"
|
||||
serversTransport:
|
||||
insecureSkipVerify: true
|
||||
providers:
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
exposedByDefault: false
|
||||
file:
|
||||
filename: /config.yaml
|
||||
certificatesResolvers:
|
||||
cloudflare:
|
||||
acme:
|
||||
# caServer: https://acme-v02.api.letsencrypt.org/directory # production (default)
|
||||
caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging (testing)
|
||||
email: your@email.com
|
||||
storage: acme.json
|
||||
dnsChallenge:
|
||||
provider: cloudflare
|
||||
# disablePropagationCheck: true # Some people using Cloudflare note this can solve DNS propagation issues.
|
||||
resolvers:
|
||||
- "1.1.1.1:53"
|
||||
- "1.0.0.1:53"
|
||||
|
||||
log:
|
||||
level: "INFO"
|
||||
filePath: "/var/log/traefik/traefik.log"
|
||||
accessLog:
|
||||
filePath: "/var/log/traefik/access.log"
|
Reference in New Issue
Block a user