2022-03-15 16:19:37 +00:00
|
|
|
from peewee import SqliteDatabase
|
|
|
|
from passlib.context import CryptContext
|
|
|
|
|
2022-03-15 17:38:24 +00:00
|
|
|
DB = SqliteDatabase("tmp/vpn.db")
|
2022-03-15 16:19:37 +00:00
|
|
|
PRODUCTION_MODE = False
|
|
|
|
|
|
|
|
# to get a string like this run:
|
|
|
|
# openssl rand -hex 32
|
|
|
|
SECRET_KEY = "2f7875b0d2be8a76eba8077ab4d9f8b1c749e02647e9ac9e0f909c3acbfc9856"
|
|
|
|
ALGORITHM = "HS256"
|
|
|
|
ACCESS_TOKEN_EXPIRE_MINUTES = 30
|
|
|
|
|
|
|
|
CRYPT_CONTEXT = CryptContext(schemes=["bcrypt"], deprecated="auto")
|