Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oauth:
- container_name: oauth
- image: thomseddon/traefik-forward-auth:latest
- restart: unless-stopped
- networks:
- - proxy
- security_opt:
- - no-new-privileges:true
- environment:
- - CLIENT_ID=$GOOGLE_CLIENT_ID
- - CLIENT_SECRET=$GOOGLE_CLIENT_SECRET
- - SECRET=$OAUTH_SECRET
- - COOKIE_DOMAIN=$DOMAINNAME
- - INSECURE_COOKIE=false
- - AUTH_HOST=oauth.$DOMAINNAME
- - URL_PATH=/_oauth
- - WHITELIST=$CLOUDFLARE_EMAIL
- - LOG_LEVEL=warn
- - LOG_FORMAT=text
- - LIFETIME=2592000 # 30 days
- - DEFAULT_ACTION=auth
- - DEFAULT_PROVIDER=google
- labels:
- - "traefik.enable=true"
- - "traefik.http.routers.oauth.entrypoints=websecure"
- - "traefik.http.routers.oauth.middlewares=chain-oauth@file"
- - "traefik.http.services.oauth.loadbalancer.server.port=4181"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement