mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
update documentation
This commit is contained in:
14
examples/caddy-authelia/Caddyfile
Normal file
14
examples/caddy-authelia/Caddyfile
Normal file
@@ -0,0 +1,14 @@
|
||||
# Authelia portal. Replace auth.example.com with your auth subdomain.
|
||||
auth.example.com {
|
||||
reverse_proxy authelia:9091
|
||||
}
|
||||
|
||||
# Ignis. Replace ignis.example.com with your domain.
|
||||
ignis.example.com {
|
||||
forward_auth authelia:9091 {
|
||||
uri /api/authz/forward-auth
|
||||
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
|
||||
}
|
||||
|
||||
reverse_proxy ignis:8080
|
||||
}
|
||||
36
examples/caddy-authelia/authelia/configuration.yml
Normal file
36
examples/caddy-authelia/authelia/configuration.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
# Authelia minimal configuration for Ignis.
|
||||
# See https://www.authelia.com/configuration/prologue/introduction/ for full docs.
|
||||
|
||||
# -- Replace these with random strings (e.g. openssl rand -hex 32) --
|
||||
identity_validation:
|
||||
reset_password:
|
||||
jwt_secret: REPLACE_WITH_A_RANDOM_SECRET
|
||||
|
||||
server:
|
||||
address: tcp://0.0.0.0:9091
|
||||
|
||||
log:
|
||||
level: info
|
||||
|
||||
authentication_backend:
|
||||
file:
|
||||
path: /config/users_database.yml
|
||||
|
||||
session:
|
||||
cookies:
|
||||
- domain: example.com # Replace with your root domain
|
||||
authelia_url: https://auth.example.com
|
||||
|
||||
storage:
|
||||
encryption_key: REPLACE_WITH_ANOTHER_RANDOM_SECRET
|
||||
local:
|
||||
path: /data/db.sqlite3
|
||||
|
||||
notifier:
|
||||
# For production, replace this with an SMTP block.
|
||||
# The filesystem notifier writes password reset links to a file instead of emailing them.
|
||||
filesystem:
|
||||
filename: /data/notification.txt
|
||||
|
||||
access_control:
|
||||
default_policy: one_factor
|
||||
13
examples/caddy-authelia/authelia/users_database.yml
Normal file
13
examples/caddy-authelia/authelia/users_database.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Authelia user database.
|
||||
#
|
||||
# To generate a password hash, run:
|
||||
# docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password YOUR_PASSWORD
|
||||
#
|
||||
# Then paste the output as the `password` value below.
|
||||
|
||||
users:
|
||||
admin:
|
||||
disabled: false
|
||||
displayname: Admin
|
||||
email: admin@example.com
|
||||
password: "$argon2id$v=19$m=65536,t=3,p=4$REPLACE_THIS_WITH_YOUR_HASH"
|
||||
45
examples/caddy-authelia/docker-compose.yml
Normal file
45
examples/caddy-authelia/docker-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
networks:
|
||||
- ignis
|
||||
restart: unless-stopped
|
||||
|
||||
authelia:
|
||||
image: authelia/authelia:latest
|
||||
volumes:
|
||||
- ./authelia:/config:ro
|
||||
- authelia_data:/data
|
||||
networks:
|
||||
- ignis
|
||||
restart: unless-stopped
|
||||
|
||||
ignis:
|
||||
image: nobbe/ignis:latest
|
||||
# To build from source instead, comment out `image` and uncomment:
|
||||
# build: ../../
|
||||
environment:
|
||||
- OBSIDIAN_VERSION=1.12.4
|
||||
volumes:
|
||||
- ./vaults:/vaults
|
||||
- ./data:/app/data
|
||||
- obsidian-app:/app/obsidian-app
|
||||
networks:
|
||||
- ignis
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
ignis:
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
authelia_data:
|
||||
obsidian-app:
|
||||
Reference in New Issue
Block a user