From 518e3960797b131ca2a7762e10202efd6b0e552b Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 5 Aug 2026 17:50:43 +0500 Subject: [PATCH] common: fix NOTESNOOK_CORS_ORIGINS env var --- Streetwriters.Common/Constants.cs | 2 +- docker-compose.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Streetwriters.Common/Constants.cs b/Streetwriters.Common/Constants.cs index 58862cd..b7841f2 100644 --- a/Streetwriters.Common/Constants.cs +++ b/Streetwriters.Common/Constants.cs @@ -78,7 +78,7 @@ namespace Streetwriters.Common public static string? SUBSCRIPTIONS_SERVER_HOST => ReadSecret("SUBSCRIPTIONS_SERVER_HOST"); public static string? SUBSCRIPTIONS_CERT_PATH => ReadSecret("SUBSCRIPTIONS_CERT_PATH"); public static string? SUBSCRIPTIONS_CERT_KEY_PATH => ReadSecret("SUBSCRIPTIONS_CERT_KEY_PATH"); - public static string[] NOTESNOOK_CORS_ORIGINS => ReadSecret("NOTESNOOK_CORS")?.Split(",") ?? []; + public static string[] NOTESNOOK_CORS_ORIGINS => ReadSecret("NOTESNOOK_CORS_ORIGINS")?.Split(",") ?? []; public static string? SIGNALR_REDIS_CONNECTION_STRING => ReadSecret("SIGNALR_REDIS_CONNECTION_STRING"); public static string MONOGRAPH_PUBLIC_URL => ReadSecret("MONOGRAPH_PUBLIC_URL") ?? "https://monogr.ph"; diff --git a/docker-compose.yml b/docker-compose.yml index 0c05eba..0ffd817 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -167,7 +167,6 @@ services: S3_SERVICE_URL: "${ATTACHMENTS_SERVER_PUBLIC_URL}" S3_REGION: "us-east-1" S3_BUCKET_NAME: "attachments" - NOTESNOOK_CORS: ${NOTESNOOK_CORS_ORIGINS:-} sse-server: image: streetwriters/sse:latest