nrgbistro

Authelia issues

Aug 5th, 2020
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.94 KB | None | 0 0
  1. ###############################################################
  2. #                   Authelia configuration                    #
  3. ###############################################################
  4.  
  5. host: 0.0.0.0
  6. port: 9091
  7. log_level: debug
  8. # This secret can also be set using the env variables AUTHELIA_JWT_SECRET_FILE
  9. jwt_secret: xxxxx
  10. default_redirection_url: https://www.xxxxx.wtf
  11. totp:
  12.   issuer: authelia.com
  13.  
  14. #duo_api:
  15. #  hostname: api-123456789.example.com
  16. #  integration_key: ABCDEF
  17. #  # This secret can also be set using the env variables AUTHELIA_DUO_API_SECRET_KEY_FILE
  18. #  secret_key: 1234567890abcdefghifjkl
  19.  
  20. authentication_backend:
  21.   disable_reset_password: false
  22.   file:
  23.     path: /config/users_database.yml
  24.     password:
  25.       algorithm: argon2id
  26.       iterations: 1
  27.       salt_length: 16
  28.       parallelism: 8
  29.       memory: 1024
  30.  
  31. server:
  32.   path: "authelia"
  33.   read_buffer_size: 4096
  34.   write_buffer_size: 4096
  35.  
  36. access_control:
  37.   default_policy: deny
  38.   rules:
  39.     - domain:
  40.      - xxxx.wtf
  41.       - "*.xxxxxx.wtf"
  42.       policy: one_factor
  43.  
  44. session:
  45.   name: authelia_session
  46.   # This secret can also be set using the env variables AUTHELIA_SESSION_SECRET_FILE
  47.   secret: xxxx
  48.   expiration: 7200 # 2 hours
  49.   inactivity: 600 # 10 minutes
  50.   domain: xxxxxx.wtf # Should match whatever your root protected domain is
  51.  
  52.   redis:
  53.     host: redis
  54.     port: 6379
  55.     # This secret can also be set using the env variables AUTHELIA_SESSION_REDIS_PASSWORD_FILE
  56.     password: xxxxx
  57.  
  58. regulation:
  59.   max_retries: 3
  60.   find_time: 120
  61.   ban_time: 300
  62.  
  63. storage:
  64.   local:
  65.     path: /config/db.sqlite3
  66.  
  67. notifier:
  68.   disable_startup_check: true
  69.   filesystem:
  70.     filename: /config/noti.txt
  71.  
  72.  
  73.  
  74.  
  75. ###############################################################
  76. #                     docker-compose.yml                      #
  77. ###############################################################
  78.  
  79. version: '3.3'
  80.  
  81. networks:
  82.   user_network:
  83.     external: true
  84.  
  85. services:
  86.   authelia:
  87.     image: authelia/authelia
  88.     container_name: authelia
  89.     volumes:
  90.      - ./authelia:/config
  91.     networks:
  92.      - user_network
  93.     expose:
  94.      - 9091
  95.     restart: unless-stopped
  96.     environment:
  97.      - TZ=America/New_York
  98.  
  99.  
  100.  
  101. ###############################################################
  102. #                    sonarr.subdomain.conf                    #
  103. ###############################################################
  104.  
  105. # make sure that your dns has a cname set for sonarr and that your sonarr container is not using a base url
  106.  
  107. server {
  108.     listen 443 ssl;
  109.     listen [::]:443 ssl;
  110.  
  111.     server_name sonarr.*;
  112.  
  113.     include /config/nginx/ssl.conf;
  114.  
  115.     client_max_body_size 0;
  116.  
  117.     # enable for ldap auth, fill in ldap details in ldap.conf
  118.     #include /config/nginx/ldap.conf;
  119.  
  120.     # enable for Authelia
  121.     include /config/nginx/authelia-server.conf;
  122.  
  123.     location / {
  124.         # enable the next two lines for http auth
  125.         #auth_basic "Restricted";
  126.         #auth_basic_user_file /config/nginx/.htpasswd;
  127.  
  128.         # enable the next two lines for ldap auth
  129.         #auth_request /auth;
  130.         #error_page 401 =200 /ldaplogin;
  131.  
  132.         # enable for Authelia
  133.         include /config/nginx/authelia-location.conf;
  134.  
  135.         include /config/nginx/proxy.conf;
  136.         resolver 127.0.0.11 valid=30s;
  137.         set $upstream_app sonarr;
  138.         set $upstream_port 8989;
  139.         set $upstream_proto http;
  140.         proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  141.  
  142.     }
  143.  
  144.     location ~ (/sonarr)?/api {
  145.         include /config/nginx/proxy.conf;
  146.         resolver 127.0.0.11 valid=30s;
  147.         set $upstream_app sonarr;
  148.         set $upstream_port 8989;
  149.         set $upstream_proto http;
  150.         proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  151.  
  152.    }
  153. }
  154.  
  155.  
  156.  
  157. Didn't touch authelia-location.conf or authelia-server.conf; double checked and sonarr works fine when I comment out the athelia lines in sonarr.subdomain.conf
Add Comment
Please, Sign In to add comment