default pk path /github/private-key.pem

This commit is contained in:
mbecker20
2024-07-05 02:15:35 -07:00
parent 1ddae31aad
commit 2ccecf38f2
4 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -99,6 +99,7 @@ impl Resolve<CreateBuildWebhook, User> for State {
host,
github_webhook_base_url,
github_webhook_app,
github_webhook_secret,
..
} = core_config();
@@ -134,7 +135,7 @@ impl Resolve<CreateBuildWebhook, User> for State {
active: Some(true),
config: Some(ReposCreateWebhookRequestConfig {
url,
secret: core_config().github_webhook_secret.to_string(),
secret: github_webhook_secret.to_string(),
content_type: String::from("json"),
insecure_ssl: None,
digest: Default::default(),
+2 -1
View File
@@ -101,6 +101,7 @@ impl Resolve<CreateRepoWebhook, User> for State {
host,
github_webhook_base_url,
github_webhook_app,
github_webhook_secret,
..
} = core_config();
@@ -143,7 +144,7 @@ impl Resolve<CreateRepoWebhook, User> for State {
active: Some(true),
config: Some(ReposCreateWebhookRequestConfig {
url,
secret: core_config().github_webhook_secret.to_string(),
secret: github_webhook_secret.to_string(),
content_type: String::from("json"),
insecure_ssl: None,
digest: Default::default(),
+3 -3
View File
@@ -235,8 +235,8 @@ fn default_config_path() -> String {
/// # github_webhook_app.owners = ["mbecker20"] # List of the repo owners which the app has access to.
///
/// ## Path to github webhook app private key.
/// ## This is defaulted to `/github-private-key.pem`, and doesn't need to be changed if running in Docker.
/// ## Just mount the private key pem file on the host to `/github-private-key.pem` in the container.
/// ## This is defaulted to `/github/private-key.pem`, and doesn't need to be changed if running in Docker.
/// ## Just mount the private key pem file on the host to `/github/private-key.pem` in the container.
/// # github_webhook_app.pk_path = "/path/to/pk.pem"
///
/// ## MUST comment back in some way to configure mongo.
@@ -607,7 +607,7 @@ pub struct GithubWebhookAppConfig {
}
fn default_private_key_path() -> String {
String::from("/github-private-key.pem")
String::from("/github/private-key.pem")
}
impl Default for GithubWebhookAppConfig {
+2 -2
View File
@@ -88,8 +88,8 @@ passkey = "a_random_passkey"
# github_webhook_app.owners = ["mbecker20"] # List of the repo owners which the app has access to.
## Path to github webhook app private key.
## This is defaulted to `/github-private-key.pem`, and doesn't need to be changed if running in Docker.
## Just mount the private key pem file on the host to `/github-private-key.pem` in the container.
## This is defaulted to `/github/private-key.pem`, and doesn't need to be changed if running in Docker.
## Just mount the private key pem file on the host to `/github/private-key.pem` in the container.
# github_webhook_app.pk_path = "/path/to/pk.pem"
## an alternate base url that is used to recieve github webhook requests