Skip to content

Commit

Permalink
Add config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yunkon-kim committed Dec 20, 2023
1 parent e9dd0b0 commit c394a77
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions conf/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## 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 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)

0 comments on commit c394a77

Please sign in to comment.