From f3a9eb163842602f172b8246b152e7377303ee1d Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 6 Mar 2026 03:36:46 -0800 Subject: [PATCH] Add serving of static files from ../lmno.games This makes development simpler since we don't need an additional server to serve the static files, (on our production machine, we do have a separate web server for the static files). --- lmno.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lmno.js b/lmno.js index 54baea9..6359355 100644 --- a/lmno.js +++ b/lmno.js @@ -33,6 +33,9 @@ The "node lmno-passwd.js" command can help generate password hashes.`); const app = express(); +/* Serve static files from the lmno.games directory for local development. */ +app.use(express.static(path.join(__dirname, '..', 'lmno.games'))); + /* This 'trust proxy' option, (and, really? a space in an option * name?!) means that express will grab hostname and IP values from * the X-Forwarded-* header fields. We need that so that our games -- 2.45.2