-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.env.example
More file actions
60 lines (46 loc) 路 2.23 KB
/
Copy path.env.example
File metadata and controls
60 lines (46 loc) 路 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# shellcheck disable=SC2034
# This configuration is intended for development, it's not safe for production use.
# Refer to the deployment guide and ties' command-line help for configuring a production system.
# === Compile-time configuration ===
# For easier packaging, this is set to `true` by default in `.cargo/config.toml`.
# For local development, it's more convenient to set it to `false`.
# If you use rust-analyzer, you might need to set "rust-analyzer.cargo.extraEnv" to { "SQLX_OFFLINE": "false" } as well.
SQLX_OFFLINE=false
# The values below are only relevant for development
# Used by the justfile to start a development postgres container.
# The database name will be used for the name of the podman container as well.
DATABASE_NAME=ties
DATABASE_PORT=55432
# For spinning up a test rauthy instance in
# local dev environments
RAUTHY_PORT=55434
# Configuration for spinning up a separate, ephemeral postgres container for tests.
# The database name will be used for the name of the podman container as well.
DATABASE_NAME_TEST=ties_test
DATABASE_PORT_TEST=55433
DATABASE_URL_TEST=postgres://postgres@localhost:${DATABASE_PORT_TEST}/${DATABASE_NAME_TEST}
# === Run-time configuration ===
DATABASE_URL=postgres://postgres@localhost:${DATABASE_PORT}/${DATABASE_NAME}
# URL for reaching the server publicly.
# Include the protocol (http or https) and, if it's not the default, the port.
BASE_URL=https://ties.localhost:4443
LISTEN=127.0.0.1:4443
# If the above doesn't work for you, use another port instead, e.g.:
# BASE_URL=https://127.0.0.1:4040
# LISTEN=https://127.0.0.1:4040
# Optional: Create an admin user if it does not exist yet.
ADMIN_USERNAME=
ADMIN_PASSWORD=
# Optional: Used for Single Sign On (SSO).
OIDC_CLIENT_ID=
OIDC_CLIENT_SECRET=
# Configuration for connecting to a local rauthy instance
OIDC_ISSUER_URL=http://localhost:${RAUTHY_PORT}/auth/v1
OIDC_ISSUER_NAME=Rauthy
# Optional: if set, serve TLS connections only.
TLS_KEY=development_cert/localhost.key
TLS_CERT=development_cert/localhost.crt
# Filter log output based on modules.
RUST_LOG=ties=debug,tower_http=debug,tower_http::trace::on_request=info,axum::rejection=trace
# Replace the login page with an anonymous one-click signup and delete all data periodically.
DEMO_MODE=false