forked from cloud-barista/cb-spider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.env
More file actions
53 lines (43 loc) · 1.81 KB
/
setup.env
File metadata and controls
53 lines (43 loc) · 1.81 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
#!/bin/bash
# root path of cb-spider
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}`
export CBSPIDER_ROOT=`cd $SCRIPT_DIR && pwd`
### Set Spider server Address of Service Address
# cf) https://github.com/cloud-barista/cb-spider/wiki/CB-Spider-Service-Address-Configuration
# default: unset SERVER_ADDRESS and unset SERVICE_ADDRESS
# examples for other service port
#export SERVER_ADDRESS=":3000"
# examples for K8S env
#export SERVER_ADDRESS=":1024"
#export SERVICE_ADDRESS="1.2.3.4:31024"
### Set the library type of Cloud Driver pkg.
# ON is a shared library type.
# default: OFF (will be deprecated)
export PLUGIN_SW=OFF
## If the value is OFF, Spider does not perform ID transformation.
# default: ON
export ID_TRANSFORM_MODE=ON
# root path of cb-log
export CBLOG_ROOT=$CBSPIDER_ROOT
# AdminWeb ON/OFF setting
# ON: Enable AdminWeb, OFF: Disable AdminWeb
# default: ON
export ADMINWEB=ON
# MC-Insight API Token for multi-cloud metadata search
# Get token from MC-Insight service administrator
# If empty, MC-Insight features will be disabled
export MC_INSIGHT_API_TOKEN=c72df1af9b1f0c29
# Meta DB Backup Configuration
# All settings are optional. If not set, defaults are used without errors.
# SPIDER_BACKUP_ENABLED: true/false (default: true)
# SPIDER_BACKUP_INTERVAL: Go duration format, e.g., 6h, 1h, 30m (default: 6h)
# SPIDER_BACKUP_DIR: Backup directory path (default: $CBSPIDER_ROOT/meta_db/backups)
# SPIDER_BACKUP_MAX_COUNT: Max number of backup files to keep (default: 10)
#export SPIDER_BACKUP_ENABLED=true
#export SPIDER_BACKUP_INTERVAL=6h
#export SPIDER_BACKUP_DIR=$CBSPIDER_ROOT/meta_db/backups
#export SPIDER_BACKUP_MAX_COUNT=10
# REST API Authentication (Basic Auth) - REQUIRED
# - Both SPIDER_USERNAME and SPIDER_PASSWORD must be set. Server will not start without them.
export SPIDER_USERNAME=admin
export SPIDER_PASSWORD=