diff --git a/.env.example b/.env.example index 0da52512..a0dfd482 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,17 @@ #For more information on .env files, their content and format: https://pypi.org/project/python-dotenv/ +###################################### +####### Auth Configurations ########## +###################################### +# Secret Key: will default to the hash of the super user. +# !!!!! It is strongly recommended that you set your own strong random value !!!! +AUTH_SECRET_KEY="" +AUTH_TOKEN_EXPIRE_MINUTES=525600 +# Possible authorization methods: user-id-only, username-password, nostr-auth-nip98, google-auth, github-auth, keycloak-auth +AUTH_ALLOWED_METHODS="user-id-only, username-password" +# Set this flag if HTTP is used for OAuth +# OAUTHLIB_INSECURE_TRANSPORT="1" + ###################################### ########### Admin Settings ########### ###################################### @@ -136,17 +148,6 @@ BREEZ_GREENLIGHT_DEVICE_CERT="/path/to/breezsdk/device.crt" # or BASE64/HEXSTRI # BREEZ_USE_TRAMPOLINE=true -###################################### -####### Auth Configurations ########## -###################################### -# Secret Key: will default to the hash of the super user. It is strongly recommended that you set your own value. -AUTH_SECRET_KEY="" -AUTH_TOKEN_EXPIRE_MINUTES=525600 -# Possible authorization methods: user-id-only, username-password, nostr-auth-nip98, google-auth, github-auth, keycloak-auth -AUTH_ALLOWED_METHODS="user-id-only, username-password" -# Set this flag if HTTP is used for OAuth -# OAUTHLIB_INSECURE_TRANSPORT="1" - # Google OAuth Config # Make sure that the authorized redirect URIs contain https://{domain}/api/v1/auth/google/token GOOGLE_CLIENT_ID=""