-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.template
80 lines (58 loc) · 2.41 KB
/
.env.template
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
## ===== xapi_db (Database) stuff =====
# Database URL with a privileged user (not root) credentials.
DB_SERVER_URL="postgresql://user:password@host:port"
# Database name.
DB_NAME="xapi"
# Database connection pool configuration optionsparameters
DB_MAX_CONNECTIONS = 16
DB_MIN_CONNECTIONS = 4
DB_CONNECT_TIMEOUT_SECS = 8
DB_ACQUIRE_TIMEOUT_SECS = 8
DB_IDLE_TIMEOUT_SECS = 8
DB_MAX_LIFETIME_SECS = 8
# Convenience for `sqlx` command line tool
DATABASE_URL="${DB_SERVER_URL}/${DB_NAME}"
## Maximum number of Statements to return.
DB_STATEMENTS_PAGE_LEN = 20
## Filter views parameters
# When the cleaner task scheduler kicks in, at most this number of stale filter
# views registration IDs are processed at a time. Default is 50.
#
# TTL_BATCH_LEN = 50
# Number of seconds a filter view registration identifier remains valid after
# it's created. Default is 30.
#
# TTL_SECS = 30
# Number of seconds the cleaner task sleeps between runs. Default is 60.
#
# TTL_INTERVAL_SECS = 60
## Multipart temp file cleaner parameters
# Number of seconds the cleaner task sleeps between runs. Default is 10.
#
# MFC_INTERVAL_SECS = 10
## ===== xapi_lrs (LaRS) stuff =====
# Host IPv4 and port number where LaRS will be listening for connections.
LRS_HOST = "127.0.0.1"
LRS_PORT = 9000
# IMPORTANT (rsn) 20241024 - ensure it matches the value used in `migrations`
# DEPRECATED (since 0.1.5) - Use LRS_ROOT_EMAIL instead.
LRS_AUTHORITY_IFI = "admin@my.xapi.net"
# Mode of operation of this server. Read the "USERS.md" document for an explanation
# about the three alternatives.
LRS_MODE = "legacy"
# The root user's `user_id` and `password` properties which when combined form
# the _RootUser_ Basic Authentication (BA) access credentials. Only the `user_id`
# part, named `LRS_ROOT_EMAIL`, is given a default value that is an alias to the
# (now deprecated) `LRS_AUTHORITY_IFI` property. The password value part should
# be set in `.env` otherwise the server will only operate in Legacy mode.
LRS_ROOT_EMAIL = "${LRS_AUTHORITY_IFI}"
# LRS_ROOT_PASSWORD
# Controls the size of an in-memory cache of recently authenticated users.
LRS_USER_CACHE_LEN = 100
## How URLs generated by LaRS will be seen from the outside.
LRS_EXTERNAL_URL="https://localhost/xapi/"
## ===== workspace stuff =====
## https://github.com/secretkeysio/jelly-actix-web-starter/blob/trunk/.env.example
# Just force these here to make life easier. ;P
RUST_BACKTRACE=1
RUST_LOG="error"