-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.env
More file actions
67 lines (56 loc) · 3.88 KB
/
example.env
File metadata and controls
67 lines (56 loc) · 3.88 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
61
62
63
64
65
66
67
RESTART_POLICY = '{
"excludedContainers": ["container_name"], #-> More than 1 container could be excluded. Specify them as ["container1", "container2"]
"statuses": {
"exited": {
"codesToExclude": [0] #-> More than 1 exit code could be excluded. Specify them as ["code1", "code2", "code3"]
}
}
}'
ENABLE_DASHBOARD=True #-> Possible values [True | False]
LOGS_AMOUNT=10 #-> This will display the last n logs on the dashboard to clearly indicate the issue that triggered the restart policy
DASHBOARD_ADDRESS=0.0.0.0 #-> Possible values [0.0.0.0 | 127.0.0.1]
DASHBOARD_PORT=8000 #-> Possible values [ Any free port ]
ADMIN_PASSWORD=
ENABLE_NOTIFICATIONS=True #-> Possible values [True | False]
NOTIFICATION_URLS='["url1", "url2"]' #-> Check https://github.com/caronc/apprise/wiki#notification-services
NOTIFICATION_TITLE="" #-> Edit the notification title as you wish
NOTIFICATION_BODY="" #-> Edit the notification body as you wish
###############
# LOGGING #
###############
# --- Log Level ---
# Set the verbosity of logs. Options: "error", "warn", "info", "debug"
# Default: info
LOG_LEVEL= info
# --- Log Timezone ---
# Adjust the timezone used for logging
# e.g. Europe/Rome, America/New_York
LOG_TIMEZONE=UTC
###############
# AGENT #
###############
# This is the configuration for the agent that will execute the actions.
# You can specify multiple agents as [{"host": "ip1", "port": port1, "token": " token1", "verify_ssl": true}, {"host": "ip2", "port": port2, "token": "token2", "verify_ssl": false}]
#
# Detailed explanation of each field:
# | Field Name | Description | Example Values
# |--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------
# | host | The IP address or hostname where the agent is running. This is the address that the main application will use to send requests to the agent. | local ip, https://example.com, etc.
# | port | The port on which the agent is listening for incoming requests. Make sure to set this to a free port. | Any free port
# | token | The token that the agent will use to authenticate incoming requests. Make sure to set this to a strong, unique value. | Any strong, unique string
# | verify_ssl | This specifies whether the agent client should verify SSL certificates when making requests to the agent server. Set this to False if you are using self-signed certificates or if you want to disable SSL verification for any reason. | True or False
#
# Default: []
AGENTS_CONFIG = '[{host: "", port: 8000, token: "", verify_ssl: true}]'
# This is used to specify if the agent should bind to a specific host.
# This is useful if the agent is running on the same machine as the main application and you want to restrict access to it.
# Possible values [127.0.0.1 | 0.0.0.0]
# Default: 127.0.0.1
AGENT_HOST=127.0.0.1
# This is the port on which the agent will listen for incoming requests. Make sure to set this to a free port.
# Possible values [ Any free port ]
# Default: 8000
AGENT_PORT=8000
# This is the token that the agent will use to authenticate incoming requests. Make sure to set this to a strong, unique value.
# Default: None
AGENT_TOKEN= yourtoken