summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-12 12:14:37 +0000
committerTor Andersson <tor@ccxvii.net>2022-01-12 13:46:41 +0100
commit9a7e379d9db522091d08536270019e9ead7eb4f5 (patch)
tree9c040b170a5aa8108cc098e710ac6302151fdc05
parent7abe96f4eb6dca922f6784f048050ddbdea975f3 (diff)
downloadserver-9a7e379d9db522091d08536270019e9ead7eb4f5.tar.gz
Add SITE_URL variable for templates.
-rw-r--r--server.js1
1 files changed, 1 insertions, 0 deletions
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);