init commit to create the project
This commit is contained in:
commit
37410ed362
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
# Python-generated files
|
||||
__pycache__/
|
||||
*.py[oc]
|
||||
build/
|
||||
dist/
|
||||
wheels/
|
||||
*.egg-info
|
||||
|
||||
# Virtual environments
|
||||
.venv
|
||||
1
.python-version
Normal file
1
.python-version
Normal file
@ -0,0 +1 @@
|
||||
3.12
|
||||
41
compose.yml
Normal file
41
compose.yml
Normal file
@ -0,0 +1,41 @@
|
||||
services:
|
||||
authelia:
|
||||
image: authelia/authelia:latest
|
||||
container_name: authelia
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET=0737cb44a0bc366ad0f2b7027aad351feeadc50a8af6bee2a300917bc5963783
|
||||
- AUTHELIA_SESSION_SECRET=5c2a6a2d18411b418251dfbeb3fb12751d3d48bbed8a0e5cf296c1870885b212
|
||||
- AUTHELIA_STORAGE_ENCRYPTION_KEY=a1f2155ab8b9e5671557253ed05efc7453aaf691d65f3acee2a93a3ac61d3af6
|
||||
volumes:
|
||||
- ./configuration.yml:/config/configuration.yml:ro
|
||||
- ./users_database.yml:/config/users_database.yml:ro
|
||||
- authelia_data:/config
|
||||
networks:
|
||||
- traefik
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.authelia.rule=Host(`us-test-authy.taila7f44e.ts.net`) && PathPrefix(`/authelia`)"
|
||||
- "traefik.http.routers.authelia.entrypoints=https"
|
||||
- "traefik.http.routers.authelia.tls.certresolver=tailscale"
|
||||
- "traefik.http.services.authelia.loadbalancer.server.port=9091"
|
||||
- "traefik.http.middlewares.authelia-auth.forwardAuth.address=http://authelia:9091/authelia/api/authz/forward-auth"
|
||||
- "traefik.http.middlewares.authelia-auth.forwardAuth.trustForwardHeader=true"
|
||||
- "traefik.http.middlewares.authelia-auth.forwardAuth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email"
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
container_name: authelia-redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- authelia_redis:/data
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
volumes:
|
||||
authelia_data:
|
||||
authelia_redis:
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
38
configuration.yml
Normal file
38
configuration.yml
Normal file
@ -0,0 +1,38 @@
|
||||
theme: dark
|
||||
|
||||
server:
|
||||
address: 'tcp://0.0.0.0:9091/authelia'
|
||||
|
||||
log:
|
||||
level: info
|
||||
|
||||
totp:
|
||||
issuer: us-test-authy.taila7f44e.ts.net
|
||||
|
||||
authentication_backend:
|
||||
file:
|
||||
path: /config/users_database.yml
|
||||
|
||||
access_control:
|
||||
default_policy: one_factor
|
||||
rules:
|
||||
- domain: us-test-authy.taila7f44e.ts.net
|
||||
policy: one_factor
|
||||
|
||||
session:
|
||||
cookies:
|
||||
- domain: 'us-test-authy.taila7f44e.ts.net'
|
||||
authelia_url: 'https://us-test-authy.taila7f44e.ts.net/authelia/'
|
||||
default_redirection_url: 'https://us-test-authy.taila7f44e.ts.net'
|
||||
|
||||
redis:
|
||||
host: authelia-redis
|
||||
port: 6379
|
||||
|
||||
storage:
|
||||
local:
|
||||
path: /config/db.sqlite3
|
||||
|
||||
notifier:
|
||||
filesystem:
|
||||
filename: /config/notification.txt
|
||||
6
main.py
Normal file
6
main.py
Normal file
@ -0,0 +1,6 @@
|
||||
def main():
|
||||
print("Hello from authelia!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
7
pyproject.toml
Normal file
7
pyproject.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[project]
|
||||
name = "authelia"
|
||||
version = "0.1.0"
|
||||
description = "Add your description here"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = []
|
||||
8
users_database.yml
Normal file
8
users_database.yml
Normal file
@ -0,0 +1,8 @@
|
||||
users:
|
||||
herby12358:
|
||||
disabled: false
|
||||
displayname: "Herby"
|
||||
password: "$argon2id$v=19$m=65536,t=3,p=4$8QSd6CWlgwDLTMlXQ1z0Pg$v+avmLCIj6WwZvu8mPVA2ImccQcqiljnHU7d3kxrTtE"
|
||||
email: tjherbranson@gmail.com
|
||||
groups:
|
||||
- admins
|
||||
Loading…
Reference in New Issue
Block a user