feat: add new encoder and restructure project

This commit is contained in:
2025-07-22 21:55:45 +00:00
parent 83d828c935
commit ee67589393
20 changed files with 143 additions and 75 deletions

View File

@@ -1,4 +1,18 @@
DATABASE_URL=postgresql://user:password@localhost:5432/mydatabase
# [dev, stage, prod]
ENVIRONMENT=dev
ENVIRONMENT=dev
### use the below to generate a good salt
# import secrets
# print(secrets.token_urlsafe(32))
###
HASHIDS_SALT=default-insecure-salt
### use the below to generate alphabet for encoder
# import random
# base61 = list("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789")
# random.shuffle(base61)
# print("".join(base61))
###
ENCODER_ALPHABET=CnArvIseYhld2BtZipybguVKaMx4QFkcR71DTLJEP65jUGzqmw9fSoXW83HNO