Environment variables

This commit is contained in:
Dita Aji Pratama 2024-06-17 17:48:14 +07:00
parent 17c6e0a725
commit 86417e7047

View File

@ -2,10 +2,57 @@ title = "Authsquare"
header = f"Welcome to {title}"
copyright = "Copyright (C) 2024 Dita Aji Pratama"
menu = {
production = False
su_mode = True
auth_key = 'your_key'
ssh = {
"key":{
"private" : "/root/.ssh/id_rsa",
"public" : "/root/.ssh/id_rsa.pub"
},
"passphrase" : None # use b'value' if use passphrase
}
reCAPTCHA = {
"client" : "your_key",
"server" : "your_key"
}
smtpconfig = {
"login" : {
"email" : "user@domain.com",
"password" : "your_password"
},
"server" : {
"host" : "smtp.domain.com",
"port" : 587
},
"from" : "user@domain.com"
}
baseurl = "https://domain.com"
if production == False:
baseurl = "http://localhost:15001"
def resend_url(email):
url = f"{baseurl}/api/auth/registration/resend?email={email}"
return url
def notme_url(token):
url = f"{baseurl}/notme?token={token}"
return url
def verification_url(token):
url = f"{baseurl}/verify?token={token}"
return url
def change_forgot_url(token):
url = f"{baseurl}/portal/change/forgot?token={token}"
return url
menu = {
"public": {
"navbar": [
{