14 lines
389 B
Python
14 lines
389 B
Python
|
from peewee import SqliteDatabase
|
||
|
from passlib.context import CryptContext
|
||
|
|
||
|
DB = SqliteDatabase("vpn.db")
|
||
|
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")
|