kiwi-vpn/api/kiwi_vpn_api/config.py

13 lines
393 B
Python

from peewee import SqliteDatabase
from passlib.context import CryptContext
DB = SqliteDatabase("tmp/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")