From 9a7e379d9db522091d08536270019e9ead7eb4f5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 12 Jan 2022 12:14:37 +0000 Subject: Add SITE_URL variable for templates. --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 9d2f4f8..4ee6168 100644 --- a/server.js +++ b/server.js @@ -98,6 +98,7 @@ app.use(compression()); app.use(express.static('public', { redirect: false, etag: false, cacheControl: false, setHeaders: set_static_headers })); app.use(express.urlencoded({extended:false})); app.locals.SITE_NAME = SITE_NAME; +app.locals.SITE_URL = SITE_URL; let http_port = process.env.HTTP_PORT || 8080; let http_server = http.createServer(app); -- cgit v1.2.3