Commit Graph

11 Commits

Author SHA1 Message Date
Shivam Patel
032fdc1b12 Fix website URL and uptime check logic
- Website: www.akkolli.net has no DNS record, use akkolli.net instead
- Uptime: treat any response < 500 as up (was res.ok / 200-299 only).
  Nextcloud returns non-200 for untrusted Host headers but is still
  running. Only 5xx and network errors count as down.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 01:48:53 -05:00
Shivam Patel
ffaf075369 Copy sqlite/sqlite3 node_modules for monitor.js in Docker image
The standalone output only includes modules Next.js traces for its own
routes. sqlite gets webpack-bundled so it's not in node_modules/ for
monitor.js to require(). Explicitly copy both packages from the builder.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 01:07:29 -05:00
Shivam Patel
859602a03e Fix monitor.js missing from Docker image and SQLITE_CANTOPEN errors
- Copy monitor.js into the standalone build stage (was missing entirely)
- Remove node-fetch require — Node 18 has global fetch built-in
- Switch from bind mount (./data) to named volume (dashboard-data) so
  Docker manages permissions correctly for the nextjs user

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 01:01:12 -05:00
Shivam Patel
d5ab2db926 Wire up visitor metrics from webserver DB and fix uptime monitoring
- Read visitors from /server_storage/visitors.db (webserver's DB) instead of
  admin dash's own table; geoip lookups at query time for globe markers
- Globe card now shows 24h, 7d, and all-time unique visitor counts
- Uptime monitor: Nextcloud via host.docker.internal for Docker networking,
  Website and Gitea monitored on public domains
- UptimeCard uses real hourly history bars instead of Math.random() mock
- docker-compose: mount /server_storage:ro, add extra_hosts for Linux compat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 00:50:40 -05:00
Akshay Kolli
4416e35580 updated 2026-02-08 03:27:35 -05:00
Akshay Kolli
d151afe873 updated docker to fix chmod 2026-02-08 03:23:01 -05:00
Akshay Kolli
f9ad906675 Updated uptime sql errros 2026-02-08 03:20:36 -05:00
Akshay Kolli
6bb3cea2aa Fixed weather location 2026-02-08 03:13:24 -05:00
Akshay Kolli
1b5ad291e4 fixed duplicate heading 2026-02-08 03:08:57 -05:00
Akshay Kolli
dd1a2ea200 Fixed and changes 2026-02-08 03:03:53 -05:00
Akshay Kolli
3f72118348 Initial commit 2026-02-08 02:32:45 -05:00