Skip to content

Commit

Permalink
Adjust Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Jun 23, 2024
1 parent 2325cc8 commit 298f712
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 1 addition & 2 deletions config.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ telegram:
# signal group configuration
signal_group:
api_url: ""
api_user: "signal-cli"
api_pass: ""
avatar: ""
account: ""
# listen port for prometheus metrics exporter
metrics_listen: ":8181"
Expand Down
10 changes: 9 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ database:
secret: "slorp-panfil-becall-dorp-hashab-incus-biter-lyra-pelage-sarraf-drunk"
# telegram configuration
telegram:
token: ""
token: "" # telegram bot token
# signal group configuration
signal_group:
api_url: "" # URL to your signal cli (https://github.com/AsamK/signal-cli)
avatar: "" # URL to the avatar for the signal group
account: "" # phone number for the signal account
# listen port for prometheus metrics exporter
metrics_listen: ":8181"
upload:
Expand All @@ -39,6 +44,9 @@ The following env vars can be used:
* `TICKER_INITIATOR`
* `TICKER_SECRET`
* `TICKER_TELEGRAM_TOKEN`
* `TICKER_SIGNAL_GROUP_API_URL`
* `TICKER_SIGNAL_GROUP_AVATAR`
* `TICKER_SIGNAL_GROUP_ACCOUNT`
* `TICKER_METRICS_LISTEN`
* `TICKER_UPLOAD_PATH`
* `TICKER_UPLOAD_URL`
3 changes: 3 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func LoadConfig(path string) Config {
if os.Getenv("TICKER_SIGNAL_GROUP_ACCOUNT") != "" {
c.SignalGroup.ApiUrl = os.Getenv("TICKER_SIGNAL_GROUP_ACCOUNT")

Check warning on line 127 in internal/config/config.go

View check run for this annotation

Codecov / codecov/patch

internal/config/config.go#L127

Added line #L127 was not covered by tests
}
if os.Getenv("TICKER_SIGNAL_GROUP_AVATAR") != "" {
c.SignalGroup.ApiUrl = os.Getenv("TICKER_SIGNAL_GROUP_AVATAR")

Check warning on line 130 in internal/config/config.go

View check run for this annotation

Codecov / codecov/patch

internal/config/config.go#L130

Added line #L130 was not covered by tests
}

return c
}

0 comments on commit 298f712

Please sign in to comment.