11# General App Configs
22app :
33 # Env mode (dev or prod)
4- mode : prod
4+ mode : ${RABBIT_APP_MODE:-dev}
55 # HTTP port
6- port : ${RABBIT_LISTEN_PORT :-8080}
6+ port : ${RABBIT_APP_PORT :-8080}
77 # App URL
8- domain : ${RABBIT_DOMAIN :-http://localhost :8080}
8+ domain : ${RABBIT_APP_DOMAIN :-http://127.0.0.1 :8080}
99 # TLS configs
1010 tls :
11- status : ${RABBIT_TLS_STATUS :-off}
12- pemPath : ${RABBIT_TLS_CERT :-cert/server.pem}
13- keyPath : ${RABBIT_TLS_CERTKEY :-cert/server.key}
11+ status : ${RABBIT_APP_TLS_STATUS :-off}
12+ pemPath : ${RABBIT_APP_TLS_PEMPATH :-cert/server.pem}
13+ keyPath : ${RABBIT_APP_TLS_KEYPATH :-cert/server.key}
1414
1515# Redis Configs
1616redis :
1717 addr : ${RABBIT_REDIS_ADDR:-redis:6379}
18- password : ${RABBIT_REDIS_PASSWORD}
18+ password : ${RABBIT_REDIS_PASSWORD:- }
1919 db : ${RABBIT_REDIS_DB:-0}
2020
2121# Message Broker Configs
2222broker :
2323 # Broker driver (native or redis)
24- driver : native
24+ driver : ${RABBIT_BROKER_DRIVER:- native}
2525 # Native driver configs
2626 native :
2727 # Queue max capacity
28- capacity : 50
28+ capacity : ${RABBIT_BROKER_NATIVE_CAPACITY:-50}
2929 # Number of concurrent workers
30- workers : 1
31- # Redis Driver Configs
30+ workers : ${RABBIT_BROKER_NATIVE_WORKERS:-1}
31+ # Redis configs
3232 redis :
33- channel : rabbit
33+ channel : ${RABBIT_BROKER_REDIS_CHANNEL:- rabbit}
3434
3535# Log configs
3636log :
3737 # Log level, it can be debug, info, warn, error, panic, fatal
38- level : ${RABBIT_LOG_LEVEL:-warn}
39- # output can be stdout or abs path to log file /var/logs/rabbit .log
40- output : ${RABBIT_LOG_OUTPUT:-stdout}
41- # Format can be json or text
42- format : json
38+ level : ${RABBIT_LOG_LEVEL:-warn}
39+ # output can be stdout or abs path to log file /var/logs/beagle .log
40+ output : ${RABBIT_LOG_OUTPUT:-stdout}
41+ # Format can be json
42+ format : ${RABBIT_LOG_FORMAT:- json}
4343
4444# Release configs
4545releases :
4646 # Releases absolute path
4747 path : ${RABBIT_RELEASES_PATH:-/app/var/releases}
48- name : " [.Tag]"
48+ name : ${RABBIT_RELEASES_NAME:- [.Tag]}
4949
5050# Build configs
5151build :
5252 # Build absolute path
5353 path : ${RABBIT_BUILD_PATH:-/app/var/build}
5454 # Number of parallel builds
55- parallelism : 1
55+ parallelism : ${RABBIT_BUILD_PARALLELISM:-1}
5656
5757# Application Database
5858database :
5959 # Database driver (redis)
60- driver : redis
61- # Redis Driver Configs
60+ driver : ${RABBIT_DATABASE_DRIVER:- redis}
61+ # Redis
6262 redis :
63- hash_prefix : rabbit_
63+ hash_prefix : ${RABBIT_DATABASE_REDIS_HASH_PREFIX:- rabbit_}
6464
6565# Third Party API Integration
6666integrations :
6767 # Github Configs
6868 github :
6969 # Webhook URI (Full URL will be app.domain + webhook_uri)
70- webhook_uri : /webhook/github
70+ webhook_uri : ${RABBIT_INTEGRATION_GITHUB_WEBHOOK_URI:- /webhook/github}
7171 # Webhook Secret (From Repo settings page > Webhooks)
72- webhook_secret : ${RABBIT_INTEGRATION_GITHUB_WEBHOOK_SECRET}
72+ webhook_secret : ${RABBIT_INTEGRATION_GITHUB_WEBHOOK_SECRET:- }
7373 # whether to use ssh or https to clone
7474 clone_with : ${RABBIT_INTEGRATION_GITHUB_CLONE_WITH:-https}
7575 # HTTPS URL format, Full name will be something like Clivern/Rabbit
76- https_format : https://github.com/{$full_name}. git
76+ https_format : ${RABBIT_INTEGRATION_GITHUB_HTTPS_FORMAT:- https://github.com/[.RepoFullName]. git}
7777 # SSH URL format, Full name will be something like Clivern/Rabbit
78- ssh_format :
[email protected] :{$full_name}. git 78+ ssh_format :
${RABBIT_INTEGRATION_GITHUB_SSH_FORMAT:- [email protected] :[.RepoFullName]. git} 7979 # Bitbucket Configs
8080 bitbucket :
8181 # Webhook URI (Full URL will be app.domain + webhook_uri)
82- webhook_uri : /webhook/bitbucket
82+ webhook_uri : ${RABBIT_INTEGRATION_BITBUCKET_WEBHOOK_URI:- /webhook/bitbucket}
8383 # whether to use ssh or https to clone
8484 clone_with : ${RABBIT_INTEGRATION_BITBUCKET_CLONE_WITH:-https}
8585 # HTTPS URL format, Full name will be something like Clivern/Rabbit
86- https_format : https://bitbucket.org/{$full_name}. git
86+ https_format : ${RABBIT_INTEGRATION_BITBUCKET_HTTPS_FORMAT:- https://bitbucket.org/[.RepoFullName]. git}
8787 # SSH URL format, Full name will be something like Clivern/Rabbit
88- ssh_format :
[email protected] :{$full_name}. git 88+ ssh_format :
${RABBIT_INTEGRATION_BITBUCKET_SSH_FORMAT:- [email protected] :[.RepoFullName]. git}
0 commit comments