diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-12 12:14:37 +0000 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-01-12 13:46:41 +0100 |
commit | 9a7e379d9db522091d08536270019e9ead7eb4f5 (patch) | |
tree | 9c040b170a5aa8108cc098e710ac6302151fdc05 | |
parent | 7abe96f4eb6dca922f6784f048050ddbdea975f3 (diff) | |
download | server-9a7e379d9db522091d08536270019e9ead7eb4f5.tar.gz |
Add SITE_URL variable for templates.
-rw-r--r-- | server.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |