3 Commits

Author SHA1 Message Date
cf43cdcf22 v0.0.4
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m8s
App Image CI / Build app image (push) Successful in 57s
2025-10-27 00:29:28 -05:00
4dbf6a4ae6 traffic logging
Some checks failed
NPM Audit Check / Check NPM audit (push) Has been cancelled
App Image CI / Build app image (push) Has been cancelled
2025-10-27 00:28:54 -05:00
617cffc052 update flyers
All checks were successful
App Image CI / Build app image (push) Successful in 33s
NPM Audit Check / Check NPM audit (push) Successful in -2m8s
2025-10-24 11:25:23 -05:00
6 changed files with 17 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "madisonlinux",
"version": "0.0.3",
"version": "0.0.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "madisonlinux",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"dependencies": {
"ejs": "3.1.10",

View File

@@ -1,6 +1,6 @@
{
"name": "madisonlinux",
"version": "0.0.3",
"version": "0.0.4",
"description": "Website for upcoming Linux install party in Madison WI",
"keywords": [
"web",

View File

@@ -56,7 +56,13 @@ class Web {
res.send('Healthy');
});
app.get('/', (_, res) => {
app.get('/', (req, res) => {
if (req.query?.['utm_medium']) {
console.log(`${req.query['utm_medium']} | ${req.headers?.['user-agent']}`);
}
else {
console.log(req.headers?.['user-agent']);
}
res.render('index', {
page: {
title: 'Madison End of 10 Install Party',
@@ -105,6 +111,11 @@ class Web {
});
});
app.use(function (req, res, _) {
console.log(`404: ${req.url} requested by ${req.ip} "${req.headers['user-agent']}"`);
res.redirect('/');
});
this._webserver = this.app.listen(this.port, () => console.log(`madisonlinux is running on port ${this.port}`));
}