Fix nip98

This commit is contained in:
Jon Staab
2026-06-01 13:31:00 -07:00
parent e4e0172972
commit 9171824ee5
6 changed files with 11 additions and 14 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ pub fn get() -> &'static Env {
#[derive(Clone)]
pub struct Env {
pub server_host: String,
pub server_url: String,
pub server_port: u16,
pub server_admin_pubkeys: Vec<String>,
pub server_allow_origins: Vec<String>,
@@ -55,7 +55,7 @@ impl Env {
.expect("ROBOT_SECRET is not a valid nostr secret key");
Self {
server_host: require_str("SERVER_HOST"),
server_url: require_str("SERVER_URL"),
server_port: require_u16("SERVER_PORT"),
server_admin_pubkeys: require_csv("SERVER_ADMIN_PUBKEYS"),
server_allow_origins: require_csv("SERVER_ALLOW_ORIGINS"),