1
0

Compare commits

...

2 Commits

4 changed files with 24 additions and 6 deletions

View File

@@ -55,16 +55,24 @@ tasks:
validate-config --config /data/{{.DEST_FILE}} validate-config --config /data/{{.DEST_FILE}}
authelia-gen-random-string: authelia-gen-random-string:
summary: |
Generate random string.
Usage example:
task authelia-gen-random-string LEN=64
vars:
LEN: '{{ .LEN | default 10 }}'
cmds: cmds:
- > - >
{{.AUTHELIA_DOCKER}} {{.AUTHELIA_DOCKER}}
crypto rand --length 32 --charset alphanumeric crypto rand --length {{.LEN}} --charset alphanumeric
authelia-gen-secret-and-hash: authelia-gen-secret-and-hash:
vars:
LEN: '{{ .LEN | default 72 }}'
cmds: cmds:
- > - >
{{.AUTHELIA_DOCKER}} {{.AUTHELIA_DOCKER}}
crypto hash generate pbkdf2 --variant sha512 --random --random.length 72 --random.charset rfc3986 crypto hash generate pbkdf2 --variant sha512 --random --random.length {{.LEN}} --random.charset rfc3986
format-py-files: format-py-files:
cmds: cmds:

View File

@@ -895,9 +895,9 @@ session:
## ##
## Important: Kubernetes (or HA) users must read https://www.authelia.com/t/statelessness ## Important: Kubernetes (or HA) users must read https://www.authelia.com/t/statelessness
## ##
# redis: redis:
# host: '127.0.0.1' host: 'authelia_redis'
# port: 6379 port: 6379
## Use a unix socket instead ## Use a unix socket instead
# host: '/var/run/redis/redis.sock' # host: '/var/run/redis/redis.sock'

View File

@@ -7,9 +7,19 @@ services:
restart: 'unless-stopped' restart: 'unless-stopped'
networks: networks:
- "web_proxy_network" - "web_proxy_network"
- "monitoring_network"
volumes: volumes:
- "{{ config_dir }}:/config" - "{{ config_dir }}:/config"
authelia_redis:
image: valkey/valkey:9-alpine
container_name: authelia_redis
restart: unless-stopped
networks:
- "monitoring_network"
networks: networks:
web_proxy_network: web_proxy_network:
external: true external: true
monitoring_network:
external: true

View File

@@ -49,7 +49,7 @@
- name: "Copy docker compose file" - name: "Copy docker compose file"
ansible.builtin.template: ansible.builtin.template:
src: "./files/{{ app_name }}/docker-compose.yml.j2" src: "./files/{{ app_name }}/docker-compose.template.yml"
dest: "{{ base_dir }}/docker-compose.yml" dest: "{{ base_dir }}/docker-compose.yml"
owner: "{{ app_user }}" owner: "{{ app_user }}"
group: "{{ app_user }}" group: "{{ app_user }}"