dynamic github webhook base url

This commit is contained in:
beckerinj
2023-02-27 22:17:37 -05:00
parent bfb9d9e34d
commit 997e68a31d
13 changed files with 117 additions and 31 deletions

View File

@@ -82,6 +82,7 @@ pub fn gen_core_config(sub_matches: &ArgMatches) {
},
jwt_secret: generate_secret(40),
github_webhook_secret: generate_secret(30),
github_webhook_base_url: None,
passkey: generate_secret(30),
};

View File

@@ -31,6 +31,9 @@ pub struct CoreConfig {
// used to verify validity from github webhooks
pub github_webhook_secret: String,
// used to form the frontend listener url, if None will use 'host'.
pub github_webhook_base_url: Option<String>,
// sent in auth header with req to periphery
pub passkey: String,