gourami

[UNMAINTAINED] Activitypub server in Rust
Log | Files | Refs | README | LICENSE

commit b3db9dc73f26630aa33239132fee206da804dd0e
parent ece4b44bc71e3674db2242d92a63327f950f99a7
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 24 May 2020 10:04:55 -0500

Fail gracefully if SIGNATURE_PUBKEY_PEM is absent

Diffstat:
Msrc/ap.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap.rs b/src/ap.rs @@ -42,7 +42,7 @@ lazy_static! { domain: env::var("GOURAMI_DOMAIN").unwrap(), key_id: format!("{}#key", domain_url()), inbox: format!("{}/inbox", domain_url()), - public_key: std::fs::read_to_string(env::var("SIGNATURE_PUBKEY_PEM").unwrap()).unwrap() + public_key: std::fs::read_to_string(env::var("SIGNATURE_PUBKEY_PEM").unwrap()).unwrap_or("".to_owned()), }; }