auth providers
This commit is contained in:
39
.env.example
39
.env.example
@@ -3,8 +3,8 @@ PYTORRENT_DB_PATH=data/pytorrent.sqlite3
|
||||
PYTORRENT_HOST=0.0.0.0
|
||||
PYTORRENT_PORT=8090
|
||||
PYTORRENT_DEBUG=0
|
||||
PYTORRENT_POLL_INTERVAL=0.5
|
||||
MIN_POLL_INTERVAL_SECONDS=0.5
|
||||
PYTORRENT_POLL_INTERVAL=1
|
||||
MIN_POLL_INTERVAL_SECONDS=1
|
||||
PYTORRENT_WORKERS=16
|
||||
PYTORRENT_GEOIP_DB=data/GeoLite2-City.mmdb
|
||||
PYTORRENT_ALLOW_UNSAFE_WERKZEUG=0
|
||||
@@ -13,9 +13,6 @@ PYTORRENT_SCGI_RETRIES=8
|
||||
# css/js libs
|
||||
PYTORRENT_USE_OFFLINE_LIBS=true
|
||||
|
||||
# python -m pytorrent.cli reset-password admin new_Pass
|
||||
PYTORRENT_AUTH_ENABLE=false
|
||||
|
||||
# Reverse proxy / HTTPS
|
||||
PYTORRENT_PROXY_FIX_ENABLE=false
|
||||
PYTORRENT_SESSION_COOKIE_SECURE=false
|
||||
@@ -41,4 +38,34 @@ PYTORRENT_LOG_DIR=data/logs
|
||||
PYTORRENT_LOG_RETENTION_HOURS=24
|
||||
PYTORRENT_GUNICORN_ACCESS_LOG=data/logs/gunicorn-access.log
|
||||
PYTORRENT_GUNICORN_ERROR_LOG=data/logs/gunicorn-error.log
|
||||
PYTORRENT_GUNICORN_LOG_LEVEL=info
|
||||
PYTORRENT_GUNICORN_LOG_LEVEL=info
|
||||
|
||||
#### AUTH
|
||||
|
||||
# python -m pytorrent.cli reset-password admin new_Pass
|
||||
PYTORRENT_AUTH_ENABLE=false
|
||||
|
||||
# Authentication provider
|
||||
# Available variants:
|
||||
# - local = built-in login screen with username/password
|
||||
# - tinyauth = external auth via Tinyauth / reverse proxy headers
|
||||
# - proxy = generic external reverse proxy auth
|
||||
PYTORRENT_AUTH_PROVIDER=tinyauth
|
||||
|
||||
# Headers passed by Tinyauth
|
||||
PYTORRENT_AUTH_PROXY_USER_HEADER=Remote-User
|
||||
PYTORRENT_AUTH_PROXY_EMAIL_HEADER=Remote-Email
|
||||
PYTORRENT_AUTH_PROXY_NAME_HEADER=Remote-Name
|
||||
PYTORRENT_AUTH_PROXY_SUB_HEADER=Remote-Sub
|
||||
|
||||
# Headers passed by external reverse proxy
|
||||
#PYTORRENT_AUTH_PROXY_USER_HEADER=X-Forwarded-User
|
||||
#PYTORRENT_AUTH_PROXY_EMAIL_HEADER=X-Forwarded-Email
|
||||
#PYTORRENT_AUTH_PROXY_NAME_HEADER=X-Forwarded-Name
|
||||
|
||||
# Auto-create user when authenticated externally but missing in DB
|
||||
PYTORRENT_AUTH_PROXY_AUTO_CREATE=true
|
||||
|
||||
# Defaults for auto-created users
|
||||
PYTORRENT_AUTH_PROXY_AUTO_CREATE_ROLE=admin
|
||||
PYTORRENT_AUTH_PROXY_AUTO_CREATE_PERMISSION=rw
|
||||
Reference in New Issue
Block a user