Files
Server/.env.example
azures04 22542243f6 Add auth, JWT tokens, and bootstrap startup
Introduce bootstrap entrypoint and prestartup to ping DB and generate/manage RSA keypair. Add security module for key IO. Implement JWT-based access and refresh tokens (tokensService) with refresh_tokens table and repo. Add auth, provider and user services, and refresh-token management. Update repositories (users, credentials, providers, servers) with SQL fixes and new helper methods. Move DDL execution to bootstrap (remove from server). Update package.json main and add dependencies (bcryptjs, jsonwebtoken). Update .env.example and .gitignore accordingly.
2026-09-02 01:55:58 +02:00

18 lines
354 B
Bash

#Config
WEB_PORT=8877
IS_PROD=FALSE
#MariaDB
DATABASE_HOST="host"
DATABASE_USER="changeme"
DATABASE_PASSWORD="password"
DATABASE_NAME="tcjourney"
#Security
BCRYPT_SALT="12"
ACCESS_TOKEN_EXPIRY="432000" #TIME IN SECONDES
REFRESH_TOKEN_EXPIRY="2592000" #TIME IN SECONDES
#LocalAuth
SERVER_UUID="00000000-0000-0000-0000-000000000000" #DON'T CHANGE IT!!!