Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

Complete production activation hardening: allow the explicit loopback and canonical Progmasoft hosts used by the Next.js API proxy, and omit MemoryDenyWriteExecute only for the CoreCLR service because the .NET JIT requires managed executable mappings while all other systemd protections remain enabled.

Commit
f92a585d831c8c0304073d2c518bc393957d7ac6
Author
Leitwolf11 ·
Parents
205eef09c2ea

Files · Download .tar.gz

Changes

 apps/api/appsettings.json         | 3 +--
 ops/systemd/progmaweb-api.service | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/apps/api/appsettings.json b/apps/api/appsettings.json
index 03162c5..5644334 100644
--- a/apps/api/appsettings.json
+++ b/apps/api/appsettings.json
@@ -5,10 +5,9 @@
       "Microsoft.AspNetCore": "Warning"
     }
   },
-  "AllowedHosts": "localhost;account.progmasoft.com;www.progmasoft.com",
+  "AllowedHosts": "localhost;127.0.0.1;progmasoft.com;account.progmasoft.com;www.progmasoft.com",
   "AccountSessions": {
     "LifetimeHours": 12,
     "CookieName": "__Host-ProgmasoftSession"
   }
 }
-
diff --git a/ops/systemd/progmaweb-api.service b/ops/systemd/progmaweb-api.service
index 97041d6..919e79e 100644
--- a/ops/systemd/progmaweb-api.service
+++ b/ops/systemd/progmaweb-api.service
@@ -25,7 +25,7 @@ ProtectKernelModules=true
 ProtectControlGroups=true
 RestrictSUIDSGID=true
 LockPersonality=true
-MemoryDenyWriteExecute=true
+# MemoryDenyWriteExecute is intentionally omitted: CoreCLR's JIT requires managed executable mappings at runtime.
 SystemCallArchitectures=native
 
 [Install]