mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-12 08:01:04 +00:00
default pk path /github/private-key.pem
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user