feat: setup project for docker deploy

This commit is contained in:
2025-07-23 22:00:35 +00:00
parent 98369ef531
commit 715bc90340
12 changed files with 139 additions and 10 deletions

24
backend/.env.example Normal file
View File

@@ -0,0 +1,24 @@
# Backend environment variables #
# Must be a PostgreSQL db connection string
DATABASE_URL=postgresql://user:password@localhost:5432/mydatabase
# [dev, stage, prod]
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
### which origins are allowed to make cross origin requests (CORS)
ALLOW_ORIGINS=http://localhost:3000,http://localhost:3030