Guest User

Untitled

a guest
Jun 18th, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.27 KB | None | 0 0
  1. # Authentik
  2.  
  3. Name: mealie
  4. Authentificationmethode: default-authentication-flow (Welcome to authentik!)
  5. Authorizationmethode: default-provider-authorization-explicit-consent (Authorize Application)
  6.  
  7. Clienttype: public
  8. Client ID: redacted
  9. Redirect URIs:
  10.     - https://mealie.domain/login
  11.     - https://mealie.domain/login*
  12.     - https://mealie.domain/login?direct=1
  13.     - https://mealie.domain
  14. Scope: email openid profile
  15. Based on the Users hased ID
  16. Checked: id_token
  17. Checked: Different Issues for each provider
  18. Groups: "Mealie-Admins" and "Mealie-Users"
  19.  
  20. # Mealie Compose
  21. services:
  22.   mealie:
  23.     image: ghcr.io/mealie-recipes/mealie:latest #
  24.     container_name: mealie
  25.     restart: always
  26.     ports:
  27.        - "9925:9000" #
  28.     deploy:
  29.       resources:
  30.         limits:
  31.           memory: 1000M #
  32.     volumes:
  33.      - ${PWD}/mealie-data:/app/data/
  34.     environment:
  35.      # Set Backend ENV Variables Here
  36.       ALLOW_SIGNUP: false
  37.       PUID: 1000
  38.       PGID: 1000
  39.       TZ: Europe/Berlin
  40.       MAX_WORKERS: 1
  41.       WEB_CONCURRENCY: 1
  42.       BASE_URL: "https://mealie.domain"
  43.  
  44.       #Security
  45.       SECURITY_MAX_LOGIN_ATTEMPTS: 5
  46.       SECURITY_USER_LOCKOUT_TIME: 24
  47.  
  48.       #OIDC
  49.       OIDC_AUTH_ENABLED: true
  50.       OIDC_SIGNUP_ENABLED: true
  51.       OIDC_CONFIGURATION_URL: https://authentik.domain/application/o/mealie/.well-known/openid-configuration
  52.       OIDC_CLIENT_ID: ID
  53.       OIDC_USER_GROUP: "Mealie-Users"
  54.       OIDC_ADMIN_GROUP: "Mealie-Admins"
  55.       OIDC_AUTO_REDIRECT: false
  56.       OIDC_PROVIDER_NAME: "Authentik"
  57.       OIDC_REMEMBER_ME: true
  58.       OIDC_SIGNING_ALGORITHM: RS256
  59.       OIDC_USER_CLAIM: email
  60.       #OIDC_GROUPS_CLAIM: groups
  61.       #OIDC_TLS_CACERTFILE: none
  62.  
  63.       LOG_LEVEL: DEBUG
  64.       # Email
  65.       SMTP_HOST: redacted #Required For email
  66.       SMTP_PORT: 587 #Required For email
  67.       SMTP_FROM_NAME: Mealie #Required For email
  68.       SMTP_AUTH_STRATEGY: TLS #Required For email, Options: 'TLS', 'SSL', 'NONE'
  69.       SMTP_FROM_EMAIL: None #Required For email
  70.       SMTP_USER: "redacted" #Required if SMTP_AUTH_STRATEGY is 'TLS' or 'SSL'
  71.       SMTP_PASSWORD: "redacted"
  72.  
  73. # Traefik
  74.  
  75. http:
  76.   routers:
  77.     mealie:
  78.       entryPoints:
  79.      - "http"
  80.       rule: "Host(`mealie.domain`)"
  81.       middlewares:
  82.        - https-redirectscheme
  83.       tls: {}
  84.       service: mealie
  85.  
  86.     mealie-secure:
  87.       entryPoints:
  88.      - "https"
  89.       rule: "Host(`mealie.domain`)"
  90.       middlewares:
  91.        - crowdsec-bouncer
  92.         - mealie-secure-headers
  93.       tls: {}
  94.       service: mealie  
  95.  
  96.   services:
  97.     mealie:
  98.       loadBalancer:
  99.         servers:
  100.           - url: "http://IP:9925"
  101.         passHostHeader: true    
  102.  
  103.  
  104.   middlewares:
  105.     mealie-secure-headers:
  106.       headers:
  107.         accessControlAllowMethods: ["GET", "OPTIONS", "PUT"]
  108.         accessControlAllowHeaders: "*"
  109.         accessControlAllowOriginList: "https://mealie.domain"
  110.         accessControlMaxAge: 100
  111.         hostsProxyHeaders: ["X-Forwarded-Host"]
  112.         stsSeconds: 63072000
  113.         stsIncludeSubdomains: true
  114.         stsPreload: true
  115.         forceSTSHeader: true
  116.         customFrameOptionsValue: "allow-from https:domain"
  117.         contentTypeNosniff: true
  118.         browserXssFilter: true
  119.         referrerPolicy: "same-origin"
  120.         contentsecuritypolicy: " default-src 'none'; style-src 'self'; script-src 'self' blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self';form-action 'none';img-src 'self';base-uri 'self'"
  121.         featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
  122.         customResponseHeaders:
  123.           X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex,noindex,nofollow"
  124.           server: ""
  125.  
  126.   tls:
  127.     default:
  128.       minVersion: "VersionTLS13"
  129.       sniStrict: true
  130.         - "secp384r1"
  131.       cipherSuites:
  132.        - "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
  133.         - "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
  134.         - "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305"
  135.         - "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
  136.         - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
  137.         - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
  138.         - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
  139.         - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"  
  140.  
Advertisement
Add Comment
Please, Sign In to add comment