-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.env
19 lines (17 loc) · 867 Bytes
/
sample.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This is the URL that SQLx will use to make connections to the Postgres database.
DATABASE_URL=postgresql://postgres:password@localhost/rust_backend_stack
# This is the HMAC key that will be used to sign login tokens (JWTs).
# It just needs to be a random string, preferably at least 48 characters long to provide sufficient
# brute-force resistance.
#
# If you have OpenSSL installed, try `openssl rand -base64 48`
HMAC_KEY={random-string}
# Configures which modules `env_logger` should emit logs for.
#
# This variable is read by `env_logger`, not the application itself, so it won't appear on the `Config` struct.
#
# The value here enables log messages from the backend application as well as log messages emitted for incoming
# requests.
#
# See: https://docs.rs/env_logger/0.9.0/env_logger/#enabling-logging
RUST_LOG=rust_backend_stack=debug,tower_http=debug