mirror of
https://github.com/kristoferssolo/Axium.git
synced 2026-02-04 05:22:02 +00:00
Extended the API security, added api documentation, added delete endpoint, more secure docker image.
This commit is contained in:
37
.env.example
37
.env.example
@@ -1,15 +1,7 @@
|
||||
# ==============================
|
||||
# 📌 DATABASE CONFIGURATION
|
||||
# ⚙️ GENERAL CONFIGURATION
|
||||
# ==============================
|
||||
|
||||
# PostgreSQL connection URL (format: postgres://user:password@host/database)
|
||||
DATABASE_URL="postgres://postgres:1234@localhost/database_name"
|
||||
|
||||
# Maximum number of connections in the database pool
|
||||
DATABASE_MAX_CONNECTIONS=20
|
||||
|
||||
# Minimum number of connections in the database pool
|
||||
DATABASE_MIN_CONNECTIONS=5
|
||||
ENVIRONMENT="development" # "production"
|
||||
|
||||
# ==============================
|
||||
# 🌍 SERVER CONFIGURATION
|
||||
@@ -24,6 +16,24 @@ SERVER_PORT="3000"
|
||||
# Enable tracing for debugging/logging (true/false)
|
||||
SERVER_TRACE_ENABLED=true
|
||||
|
||||
# Amount of threads used to run the server
|
||||
SERVER_WORKER_THREADS=2
|
||||
|
||||
|
||||
# ==============================
|
||||
# 🛢️ DATABASE CONFIGURATION
|
||||
# ==============================
|
||||
|
||||
# PostgreSQL connection URL (format: postgres://user:password@host/database)
|
||||
DATABASE_URL="postgres://postgres:1234@localhost/database_name"
|
||||
|
||||
# Maximum number of connections in the database pool
|
||||
DATABASE_MAX_CONNECTIONS=20
|
||||
|
||||
# Minimum number of connections in the database pool
|
||||
DATABASE_MIN_CONNECTIONS=5
|
||||
|
||||
|
||||
# ==============================
|
||||
# 🔒 HTTPS CONFIGURATION
|
||||
# ==============================
|
||||
@@ -40,6 +50,7 @@ SERVER_HTTPS_CERT_FILE_PATH=cert.pem
|
||||
# Path to the SSL private key file (only used if SERVER_HTTPS_ENABLED=true)
|
||||
SERVER_HTTPS_KEY_FILE_PATH=key.pem
|
||||
|
||||
|
||||
# ==============================
|
||||
# 🚦 RATE LIMIT CONFIGURATION
|
||||
# ==============================
|
||||
@@ -50,6 +61,7 @@ SERVER_RATE_LIMIT=5
|
||||
# Time period (in seconds) for rate limiting
|
||||
SERVER_RATE_LIMIT_PERIOD=1
|
||||
|
||||
|
||||
# ==============================
|
||||
# 📦 COMPRESSION CONFIGURATION
|
||||
# ==============================
|
||||
@@ -60,9 +72,10 @@ SERVER_COMPRESSION_ENABLED=true
|
||||
# Compression level (valid range: 0-11, where 11 is the highest compression)
|
||||
SERVER_COMPRESSION_LEVEL=6
|
||||
|
||||
|
||||
# ==============================
|
||||
# 🔑 AUTHENTICATION CONFIGURATION
|
||||
# ==============================
|
||||
|
||||
# Argon2 salt for password hashing (must be kept secret!)
|
||||
AUTHENTICATION_ARGON2_SALT="dMjQgtSmoQIH3Imi"
|
||||
# JWT secret key.
|
||||
JWT_SECRET_KEY="fgr4fe34w2rfTwfe3444234edfewfw4e#f$#wferg23w2DFSdf"
|
||||
Reference in New Issue
Block a user