web/website/node
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-02 19:05:02 +01:00
..
public Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
account-admin.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
auth.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
avatar.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
badge-admin.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
clan-kit-catalogue.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
community-badges.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
community-rewards.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
contact.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
cp-redirects.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
forgejo-proxy.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
game-link.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
game-mysql-pool.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
game-permission-sync.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
game-ranks.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
git-identity.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
git-public.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
integration-sso.mjs Integrate website shop accounts and ranks, split CP centers and publish ban register 2026-11-02 02:06:51 +01:00
kit-catalogue.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
mail-branding.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
mail-broker.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
mail-identity.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
managed-game-permissions.json Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
mysql.mjs Integrate shared planetary inventories and account sales with the current site 2026-10-27 19:44:22 +01:00
native-agents.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
native-forum-feed.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
native-profiles.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
native-seals.mjs Add private Dev team task workflow and themed section navigation 2026-11-02 18:15:48 +01:00
native-sync-outbox.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
news-format.mjs Release Alpha 1.0.0.3: connect shop servers and unify community experience 2026-11-02 03:42:45 +01:00
news.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
permissions.mjs Add private Dev team task workflow and themed section navigation 2026-11-02 18:15:48 +01:00
political-offices.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
profile.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
public-bans.mjs Publish appeal decision cards and prioritised Support Center requests 2026-11-02 10:14:07 +01:00
rank-admin.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
README.md Add live world status panel and restore exchange navigation 2026-10-18 20:04:24 +02:00
retired-tickets.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
schema.sql Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
search-visibility.mjs Release Alpha 1.0.0.3: connect shop servers and unify community experience 2026-11-02 03:42:45 +01:00
server-teams.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
server.mjs Publish appeal decision cards and prioritised Support Center requests 2026-11-02 10:14:07 +01:00
shared-errors.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
staff-closure-stats.mjs Credit verified ticket closers and gate personal department seals at 25 2026-11-02 19:05:02 +01:00
staff-mail.mjs Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence 2026-11-02 00:05:34 +01:00
staff-roster.mjs Credit verified ticket closers and gate personal department seals at 25 2026-11-02 19:05:02 +01:00
start.mjs Add CloudPanel Node hosting with MySQL and secure local accounts 2026-10-18 17:49:17 +02:00
world-status.mjs Integrate shared planetary inventories and account sales with the current site 2026-10-27 19:44:22 +01:00

CloudPanel Node hosting

The existing website Worker is also served by a native Node 22+ HTTP application, bound to localhost port 3000. CloudPanel should proxy dunerealms.com to that port and terminate TLS. The Sites deployment remains independent.

Install dependencies with npm install --omit=dev, run npm run build, then npm start. Set PUBLIC_ORIGIN, PORT, DB_HOST, DB_PORT, DB_NAME, DB_USER and DB_PASSWORD in a private environment file. Never place credentials in the public document root or Git. The database user needs permission to create the application tables in its own database. Existing tables are preserved.

MySQL stores forum discussions, profiles, private support tickets, accounts and sessions. Passwords use salted scrypt; only a hash of the random session token is stored. Cookies require HTTPS. The Node server strips externally supplied Sites identity headers before forwarding requests. Website accounts are separate from ChatGPT accounts. Staff access requires an explicit database role change by the operator; registration cannot grant it.

GET /healthz checks the database. Use a process manager to restart the app after failure and reboot. Production on 18 October 2026 uses PM2 under the site user, a private environment file at ~/.config/dunerealms.env, releases under ~/apps/dunerealms/releases, a current symlink and a user cron @reboot PM2 restore entry. CloudPanel port: 3000. No root access or other hosted sites were changed.

Validation: 39 local website tests passed, including rejection of forged identity headers, CSRF, privilege injection and expired logout sessions. Live MySQL tests covered registration, profile updates, private ticket create/read/reply/close, forum create/search/read/reply and cleanup of temporary records. Public domain returned the application and connected health check. The owner installed the TLS certificate; HTTPS verification and browser checks on the custom domain subsequently passed.

The exchange intentionally retains labelled demo offers until a game-market feed is configured. Connecting MySQL does not connect Minecraft market data. News and diplomacy feeds also require their configured sources. No existing ChatGPT-hosted account data was migrated.

Live world status

The homepage and exchange show a translucent server panel over the hero artwork. web/world-status.js polls /api/worlds every 30 seconds while visible. The Node handler caches checks for 15 seconds and fetches the fixed WORLD_STATUS_URL configured by the operator. It does not accept probe addresses from visitors or disclose internal addresses. A missing, stale or unreachable monitor produces Unknown, never a fabricated Online/Offline result.

network/live-lobby/status-agent.py on the Minecraft VM performs the Minecraft Java status handshake against Velocity and the Paper lobby independently. Not-yet-configured planets show Offline; add their private host/port pairs through its WORLD_TARGETS_JSON environment setting when deployed. The read-only systemd service dune-status listens on TCP 25572; UFW allows only the website host to reach it. No game console or write endpoint is exposed. The website uses WORLD_STATUS_URL=http://2.28.33.142:25572/status in its private environment file.

The status deployment is release 20261018-status; its node_modules symlink reuses the previously installed exact dependency version from 20261018-node. Keep that earlier release while this dependency symlink is in use. For a standalone future release install dependencies in its own directory.