Compare commits
7 commits
be924ba9c1
...
61114fe775
Author | SHA1 | Date | |
---|---|---|---|
61114fe775 | |||
154c558175 | |||
3f0d3944d4 | |||
cc8e482afd | |||
be327d530b | |||
7d77ef8a84 | |||
3c0b7096e2 |
1 changed files with 6 additions and 8 deletions
|
@ -470,11 +470,9 @@ mod server {
|
|||
let http_port = server_config.http()?.port();
|
||||
let webhook_url = server_config.inbound_webhook().base_url();
|
||||
let storage_path = server_config.storage().path();
|
||||
let notification = &server_config.notification();
|
||||
let notification_webhook_url = notification.webhook_url().unwrap_or_default();
|
||||
let notification_webhook_secret = notification
|
||||
.webhook_secret()
|
||||
.map(|secret| secret.expose_secret().clone())
|
||||
let notification_webhook_url = server_config
|
||||
.notification()
|
||||
.webhook_url()
|
||||
.unwrap_or_default();
|
||||
let forge_alias = server_config
|
||||
.forges()
|
||||
|
@ -525,9 +523,9 @@ url = "{webhook_url}"
|
|||
[storage]
|
||||
path = {storage_path:?}
|
||||
|
||||
[notification]
|
||||
[notifications]
|
||||
type = "Webhook"
|
||||
webhook = {{ url = "{notification_webhook_url}", secret = "{notification_webhook_secret}" }}
|
||||
webhook = {{ url = "{notification_webhook_url}" }}
|
||||
|
||||
[forge.{forge_alias}]
|
||||
forge_type = "{forge_type}"
|
||||
|
@ -747,7 +745,7 @@ mod given {
|
|||
InboundWebhook::new(a_name())
|
||||
}
|
||||
pub fn an_outbound_webhook() -> OutboundWebhook {
|
||||
OutboundWebhook::new(a_name(), a_name())
|
||||
OutboundWebhook::new(a_name())
|
||||
}
|
||||
pub fn a_server_storage() -> ServerStorage {
|
||||
ServerStorage::new(a_name().into())
|
||||
|
|
Loading…
Reference in a new issue