-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
202 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## Set system endpoints | ||
cmbeetle: | ||
root: # To be set in runtime | ||
|
||
cbstore: | ||
root: # To be set in runtime (based on cmbeetle.root) | ||
|
||
cblog: | ||
root: # To be set in runtime (based on cmbeetle.root) | ||
|
||
cbspider: | ||
callmethod: REST | ||
rest: | ||
url: http://localhost:1024/spider | ||
|
||
cbtumblebug: | ||
callmethod: REST | ||
rest: | ||
url: http://localhost:1323/tumblebug | ||
|
||
## Logger configuration | ||
logfile: | ||
# Set log file path (default logfile path: ./cm-beetle.log) | ||
path: ./cm-beetle.log | ||
maxsize: 10 | ||
maxbackups: 3 | ||
maxage: 30 | ||
compress: false | ||
|
||
# Set log level, such as trace, debug info, warn, error, fatal, and panic | ||
loglevel: debug | ||
|
||
# Set log writer, such as file, stdout, or both | ||
logwriter: both | ||
|
||
# Set execution environment, such as development or production | ||
node: | ||
env: development | ||
|
||
## Set internal DB config (SQLlite) | ||
db: | ||
url: localhost:3306 | ||
database: cm_beetle | ||
user: cm_beetle | ||
password: cm_beetle | ||
|
||
## Set API access config | ||
api: | ||
# Set API_ALLOW_ORIGINS (ex: https://cloud-barista.org,http://localhost:8080 or * for all) | ||
allow: | ||
origins: "*" | ||
|
||
# Set API_AUTH_ENABLED=true currently for basic auth for all routes (i.e., url or path) | ||
auth: | ||
enabled: true | ||
|
||
username: default | ||
password: default | ||
|
||
## Set period for auto control goroutine invocation | ||
autocontrol: | ||
duration_ms: 10000 | ||
|
||
## Set SELF_ENDPOINT, to access Swagger API dashboard outside (Ex: export SELF_ENDPOINT=x.x.x.x:8056) | ||
self: | ||
endpoint: localhost:8056 | ||
|
||
## Environment variables that you don't need to touch | ||
# Swagger UI API document file path | ||
apidoc: | ||
# export APIDOC_PATH=$CMBEETLE_ROOT/src/api/rest/docs/swagger.json | ||
path: # To be set in runtime (based on cmbeetle.root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
## Set system endpoints | ||
# Set CMBEETLE_ROOT based on path of setup.env relatively | ||
SCRIPT_DIR=`dirname ${BASH_SOURCE[0]-$0}` | ||
export CMBEETLE_ROOT=`cd $SCRIPT_DIR && cd .. && pwd` | ||
export CBSTORE_ROOT=$CMBEETLE_ROOT | ||
export CBLOG_ROOT=$CMBEETLE_ROOT | ||
#export CBSPIDER_CALLMETHOD=REST | ||
#export CBSPIDER_REST_URL=http://localhost:1024/spider | ||
#export CBTUMBLEBUG_CALLMETHOD=REST | ||
#export CBTUMBLEBUG_REST_URL=http://localhost:1323/tumblebug | ||
|
||
## Logger configuration | ||
# Set log file path (default logfile path: ./cm-beetle.log) | ||
export LOGFILE_PATH=cm-beetle.log | ||
export LOGFILE_MAXSIZE=10 | ||
export LOGFILE_MAXBACKUPS=3 | ||
export LOGFILE_MAXAGE=30 | ||
export LOGFILE_COMPRESS=false | ||
# Set log level, such as trace, debug info, warn, error, fatal, and panic | ||
export LOGLEVEL=debug | ||
# Set log writer, such as file, stdout, or both | ||
export LOGWRITER=both | ||
# Set execution environment, such as development or production | ||
export NODE_ENV=development | ||
|
||
## Set internal DB config (SQLlite) | ||
export DB_URL=localhost:3306 | ||
export DB_DATABASE=cm_beetle | ||
export DB_USER=cm_beetlee | ||
export DB_PASSWORD=cm_beetle | ||
|
||
## Set API access config | ||
# API_ALLOW_ORIGINS (ex: https://cloud-barista.org,http://localhost:8080 or * for all) | ||
export API_ALLOW_ORIGINS=* | ||
# Set API_AUTH_ENABLED=true currently for basic auth for all routes (i.e., url or path) | ||
export API_AUTH_ENABLED=true | ||
export API_USERNAME=default | ||
export API_PASSWORD=default | ||
|
||
## Set period for auto control goroutine invocation | ||
export AUTOCONTROL_DURATION_MS=10000 | ||
|
||
## Set SELF_ENDPOINT, to access Swagger API dashboard outside (Ex: export SELF_ENDPOINT=x.x.x.x:8056) | ||
export SELF_ENDPOINT=localhost:8056 | ||
|
||
## Environment variables that you don't need to touch | ||
# Swagger UI API document file path | ||
export APIDOC_PATH=$CMBEETLE_ROOT/src/api/rest/docs/swagger.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters