web/website/node
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-15 11:46:08 +01:00
..
public Add clan homeworld affiliation and managed heraldic emblems across profiles and forums 2026-11-15 11:32:02 +01:00
account-admin.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
account-archive.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
ack-season-private.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
admin-registration.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
auth.mjs Complete V2 sign-in, permission-aware navigation and retire the V1 shell 2026-11-13 01:00:19 +01:00
automated-mail-templates.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
avatar.mjs Route native account tools through CP and Imperial Post while retaining Dev access 2026-11-15 03:59:47 +01:00
badge-admin.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
bank-clients.mjs feat(postbank): central UUID client numbers and My Banking Information 2026-11-13 18:16:11 +01:00
central-scheduler.mjs Centralize scheduled banking tasks and link manual credit review to Support 2026-11-15 05:40:10 +01:00
citizen-directory.mjs Read citizen memberships from existing sources and close legacy permission aliases 2026-11-15 05:09:59 +01:00
citizen-memberships.mjs Read citizen memberships from existing sources and close legacy permission aliases 2026-11-15 05:09:59 +01:00
clan-image.py Add clan homeworld affiliation and managed heraldic emblems across profiles and forums 2026-11-15 11:32:02 +01:00
clan-kit-catalogue.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
community-badges.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
community-rewards.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
company-admin.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
company-registry.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
contact-email.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
contact.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
cp-redirects.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
discord-news.mjs Link the verified official owner alt and publish the official identity showcase 2026-11-15 03:44:02 +01:00
election-authority.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
electoral-roll.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
exchange-public.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
first-login.mjs Complete V2 sign-in, permission-aware navigation and retire the V1 shell 2026-11-13 01:00:19 +01:00
forgejo-proxy.mjs Validate the configured Forgejo proxy header using actual INI line syntax 2026-11-13 00:35:52 +01:00
forum-news.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
game-link.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
game-mysql-pool.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
game-permission-sync.mjs Project central game rights and reuse native support department adapters 2026-11-15 01:52:48 +01:00
game-ranks.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
game-staff-seals.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
git-identity.mjs Keep embedded Git authentication limited to verified existing account mappings 2026-11-13 00:37:42 +01:00
git-public.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
honour-route.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
honours.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
hosting.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
initial-agent-sync.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
initialize-badges.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
initialize-team-ranks.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
integration-sso.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
internal-mail-clans.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
internal-mail-government.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
internal-mail-reports.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
internal-mail-staff.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
internal-mail-tickets.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
internal-mail.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
issue-season-reward-private.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
kit-catalogue.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
life-status.mjs Finish directory recognition controls and audited community memorial workflow 2026-11-15 05:05:04 +01:00
mail-accounts.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
mail-branding.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
mail-broker.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
mail-identity.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
managed-game-permissions.json Report active migration status and clarify staff assignment controls 2026-11-15 03:02:19 +01:00
manual-seal-admin.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
manual-seal-route.mjs Finish directory recognition controls and audited community memorial workflow 2026-11-15 05:05:04 +01:00
member-profiles.mjs Add clan homeworld affiliation and managed heraldic emblems across profiles and forums 2026-11-15 11:32:02 +01:00
memorials.mjs Finish directory recognition controls and audited community memorial workflow 2026-11-15 05:05:04 +01:00
migration-schema-contract.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
minecraft-skins.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
minimal-account-export.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
minimal-account-import.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
minimal-account-migration.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
mysql.mjs Integrate central function policies into runtime access behind migration switch 2026-11-15 01:43:05 +01:00
native-agents.mjs Project central game rights and reuse native support department adapters 2026-11-15 01:52:48 +01:00
native-forum-feed.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
native-profiles.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
native-seals.mjs Connect personal and function seals to the central organisation and native signatures 2026-11-15 04:47:06 +01:00
native-sync-outbox.mjs Link the verified official owner alt and publish the official identity showcase 2026-11-15 03:44:02 +01:00
native-sync-schema.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
news-format.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
news.mjs Link the verified official owner alt and publish the official identity showcase 2026-11-15 03:44:02 +01:00
official-account.mjs Link the verified official owner alt and publish the official identity showcase 2026-11-15 03:44:02 +01:00
organisation-appointments.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
organisation-default-policies.mjs Add audited bank client product management and guard header activation 2026-11-15 10:38:55 +01:00
organisation-effective.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
organisation-game-projection.mjs Project central game rights and reuse native support department adapters 2026-11-15 01:52:48 +01:00
organisation-management.mjs Link the verified official owner alt and publish the official identity showcase 2026-11-15 03:44:02 +01:00
organisation-model.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
organisation-native-projection.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
organisation-public-roster.mjs Unify staff and public government directories with Order artwork and shared banners 2026-11-15 11:02:39 +01:00
organisation-runtime.mjs Read citizen memberships from existing sources and close legacy permission aliases 2026-11-15 05:09:59 +01:00
organisation-seals.mjs Connect personal and function seals to the central organisation and native signatures 2026-11-15 04:47:06 +01:00
permissions.mjs Add audited bank client product management and guard header activation 2026-11-15 10:38:55 +01:00
political-heraldry.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
political-notifications.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
postbank-admin.mjs Post audited service compensation through a shared rolling reserve 2026-11-15 11:46:08 +01:00
postbank-api.mjs Post audited service compensation through a shared rolling reserve 2026-11-15 11:46:08 +01:00
postbank-authorisations.mjs Add scoped account authorisations for users and bank staff 2026-11-14 15:57:49 +01:00
postbank-authority.mjs Add audited bank client product management and guard header activation 2026-11-15 10:38:55 +01:00
postbank-beneficiaries.mjs Complete Postbank beneficiaries, monthly statements and treasury oversight 2026-11-13 23:27:47 +01:00
postbank-catalogue.mjs Prepare credit catalogue simulator and review pages with financial intake gated 2026-11-14 14:48:26 +01:00
postbank-client-management.mjs Add audited bank client product management and guard header activation 2026-11-15 10:38:55 +01:00
postbank-compensation.mjs Post audited service compensation through a shared rolling reserve 2026-11-15 11:46:08 +01:00
postbank-contract.mjs Implement audited credit offers disbursement collateral repayments and refinancing 2026-11-14 17:07:32 +01:00
postbank-credit-concessions.mjs Implement audited credit offers disbursement collateral repayments and refinancing 2026-11-14 17:07:32 +01:00
postbank-credit-engine.mjs Accrue earned interest correctly for early and queued repayments 2026-11-14 17:21:33 +01:00
postbank-credit-ledger.mjs Accrue earned interest correctly for early and queued repayments 2026-11-14 17:21:33 +01:00
postbank-credit-model.mjs Accrue earned interest correctly for early and queued repayments 2026-11-14 17:21:33 +01:00
postbank-credit-support.mjs Centralize scheduled banking tasks and link manual credit review to Support 2026-11-15 05:40:10 +01:00
postbank-credit.mjs Centralize scheduled banking tasks and link manual credit review to Support 2026-11-15 05:40:10 +01:00
postbank-db.mjs Accrue earned interest correctly for early and queued repayments 2026-11-14 17:21:33 +01:00
postbank-payments.mjs Post audited service compensation through a shared rolling reserve 2026-11-15 11:46:08 +01:00
postbank-registry.mjs Pause dissolved clan banking entities and preserve their audit history 2026-11-14 00:03:08 +01:00
postbank-reserve-ledger.mjs Add tax treasury payments and public federal reserve ledger 2026-11-14 15:36:58 +01:00
postbank-schema.sql Post audited service compensation through a shared rolling reserve 2026-11-15 11:46:08 +01:00
postbank-service.mjs Add audited bank client product management and guard header activation 2026-11-15 10:38:55 +01:00
postbank-standing-instructions.mjs Post audited service compensation through a shared rolling reserve 2026-11-15 11:46:08 +01:00
postbank-statement-archive.mjs Automatically archive month-end bank statements through the bank ticker 2026-11-13 23:44:42 +01:00
postbank-statement.py Complete Postbank beneficiaries, monthly statements and treasury oversight 2026-11-13 23:27:47 +01:00
postbank-statements.mjs Add owner-only Grand Nagus reserve donation box 2026-11-14 14:59:32 +01:00
postbank-transfer-security.mjs Protect large instant user payments with a separate configurable payment secret 2026-11-15 05:21:50 +01:00
profile.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
public-bans.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
public-government.mjs Align public government register with agreed Realms Court and Landsraad model 2026-11-15 11:24:36 +01:00
public-staff-roster.mjs Build the new public staff directory and audited Great Migration appointments 2026-11-15 02:31:58 +01:00
rank-admin.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
README.md DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
recognition-catalog.json DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
recognition.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
retired-tickets.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
scheduler-authority.mjs Centralize scheduled banking tasks and link manual credit review to Support 2026-11-15 05:40:10 +01:00
schema.sql feat(postbank): independent database and first three activation pages 2026-11-13 20:53:18 +01:00
seal-catalog-admin.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
seal-entitlement-store.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
seal-entitlements.mjs Link the verified official owner alt and publish the official identity showcase 2026-11-15 03:44:02 +01:00
seal-rank-sync.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
search-visibility.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
server-teams.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
server.mjs Unify staff and public government directories with Order artwork and shared banners 2026-11-15 11:02:39 +01:00
share-ledger.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
shared-errors.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
shop-seal-integration.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-compare.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-migration.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-policy.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-promotions.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-read-api.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-schema.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-seals.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-service-roles.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-bureau-subteams.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-closure-stats.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-mail-policy.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-mail.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
staff-roster.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
start.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
tailor-appearance.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +01:00
world-status.mjs DuneRealms V2 clean baseline 2026-11-13 00:05:14 +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.