Skip to content

Commit

Permalink
fix: update config examples
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jun 19, 2024
1 parent 09bb42f commit d4e664b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
15 changes: 9 additions & 6 deletions admin/config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ host = "127.0.0.1"
port = 7273
username = "admin"
password = "password"
api_secret = ""

[dragonite]
api_endpoint = "http://127.0.0.1:7272"
# api_secret = ""
[[backends]]
dragonite_endpoint = "http://127.0.0.1:7272"
golbat_endpoint = "http://127.0.0.1:9001"
golbat_api_secret = ""

[golbat]
api_endpoint = "http://127.0.0.1:9001"
# api_secret = ""
# [[backends]]
# dragonite_endpoint = "http://127.0.0.1:7282"
# golbat_endpoint = "http://127.0.0.1:9011"
# golbat_api_secret = ""
20 changes: 12 additions & 8 deletions docker-compose.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ services:
container_name: admin
restart: unless-stopped
environment:
ADMIN_GENERAL_HOST: 0.0.0.0
ADMIN_GENERAL_PORT: 7273
ADMIN_GENERAL_USERNAME: admin
ADMIN_GENERAL_PASSWORD: password
- ADMIN.GENERAL.HOST=0.0.0.0
- ADMIN.GENERAL.PORT=7273
- ADMIN.GENERAL.USERNAME=admin
- ADMIN.GENERAL.PASSWORD=password
- ADMIN.GENERAL.LOG_LEVEL=info
- ADMIN.GENERAL.API_SECRET=''

ADMIN_DRAGONITE_API_ENDPOINT: http://dragonite:7272
ADMIN_DRAGONITE_API_SECRET: secret
- ADMIN.BACKENDS.0.DRAGONITE_ENDPOINT=http://dragonite:7272
- ADMIN.BACKENDS.0.GOLBAT_ENDPOINT=http://golbat:9001
- ADMIN.BACKENDS.0.GOLBAT_API_SECRET=''

ADMIN_GOLBAT_API_ENDPOINT: http://golbat:9001
ADMIN_GOLBAT_API_SECRET: secret
# - ADMIN.BACKENDS.1.DRAGONITE_ENDPOINT=http://dragonite:7274
# - ADMIN.BACKENDS.1.GOLBAT_ENDPOINT=http://golbat:9002
# - ADMIN.BACKENDS.1.GOLBAT_API_SECRET=""
ports:
- '7273:7273'

0 comments on commit d4e664b

Please sign in to comment.