1- # service
1+ # Configuration for the Axum REST API Sample.
2+
3+ # Service configuration.
4+ # The hostname or IP address where the service is running.
25SERVICE_HOST = 127.0.0.1
6+ # The port number on which the service listens.
37SERVICE_PORT = 8080
48
5- # redis
9+ # Redis configuration.
10+ # The hostname or IP address of the Redis server.
611REDIS_HOST = 127.0.0.1
12+ # The port number on which the Redis server listens.
713REDIS_PORT = 6379
814
9- # postgres
15+ # PostgreSQL configuration.
16+ # The username for connecting to the PostgreSQL database.
1017POSTGRES_USER = admin
18+ # The password for connecting to the PostgreSQL database.
1119POSTGRES_PASSWORD = pswd1234
20+ # The hostname or IP address of the PostgreSQL server.
1221POSTGRES_HOST = 127.0.0.1
22+ # The port number on which the PostgreSQL server listens.
1323POSTGRES_PORT = 5432
24+ # The name of the PostgreSQL database.
1425POSTGRES_DB = axum_web
26+ # The number of connections in the PostgreSQL connection pool.
1527POSTGRES_CONNECTION_POOL = 5
1628
29+ # JWT (JSON Web Token) configuration.
30+ # The secret key used for signing JWTs.
1731JWT_SECRET = h3EX6ZaWGrR9uwd8MkzbxA2yQmBPvCfn
32+ # The expiration time for access tokens in seconds.
1833JWT_EXPIRE_ACCESS_TOKEN_SECONDS = 3600 # 1 hour
34+ # The expiration time for refresh tokens in seconds.
1935JWT_EXPIRE_REFRESH_TOKEN_SECONDS = 7776000 # 90 days
36+ # The leeway time in seconds for validating JWTs.
2037JWT_VALIDATION_LEEWAY_SECONDS = 60 # 1 minute, default
21- JWT_ENABLE_REVOKED_TOKENS = true # using revoked tokens
38+ # Enable or disable the use of revoked tokens.
39+ # Set to 'true' to allow revoked tokens, 'false' to disallow.
40+ JWT_ENABLE_REVOKED_TOKENS = true
0 commit comments