hi
This commit is contained in:
commit
2bbacd2c7d
8 files changed
+582
No files matched your search
@@ -0,0 +1,58 @@
|
||||
# amnesia website
|
||||
|
||||
Static account portal with a compact, full-window layout inspired by the supplied
|
||||
bitchbot.cc reference: top navigation, small title bars, nested charcoal borders,
|
||||
outlined Verdana text and thin purple accent lines. Login and account pages use
|
||||
plain forms and data rows instead of marketing copy and oversized statistic cards.
|
||||
The reference was used for visual direction; its scripts and assets are not bundled.
|
||||
Browser code has no dependencies,
|
||||
external fonts, analytics, API secrets or build step. User-visible labels follow
|
||||
the client's lowercase style; entered names and license labels preserve their case.
|
||||
|
||||
## Local use
|
||||
|
||||
From `D:\projects\amnesia`, run:
|
||||
|
||||
```powershell
|
||||
python website/run-local.py
|
||||
```
|
||||
|
||||
Open **http://127.0.0.1:5173**. On a fresh local database, the setup screen creates
|
||||
the first administrator. Choose your own username/password; there are no default
|
||||
credentials. Ctrl+C stops both local servers. State persists in `licensing/data/`.
|
||||
Both `127.0.0.1` and `localhost` work on the configured website port in local
|
||||
development. Production still requires the exact configured HTTPS origin.
|
||||
Python 3.10+ is required. Local development needs no pip packages.
|
||||
|
||||
The projects can also run separately:
|
||||
|
||||
```powershell
|
||||
python licensing/run.py --dev
|
||||
python website/serve.py
|
||||
```
|
||||
|
||||
## Screens
|
||||
|
||||
- Sign in, create account and first local administrator setup.
|
||||
- Account overview with immutable numeric UID, license status and linked device.
|
||||
- License redemption and history; duration begins on redemption.
|
||||
- Device status, HWID-reset requests and password changes.
|
||||
- Administrator license creation/revocation; full keys are shown only once.
|
||||
- Member search, disable/enable accounts, approve HWID resets.
|
||||
- Recent audit log. Admin actions are enforced by the API, not just hidden in UI.
|
||||
|
||||
Browser sessions use HttpOnly, SameSite cookies and CSRF tokens. Tokens stay out
|
||||
of localStorage. The frontend uses the same-origin `/api/` path in development
|
||||
and production. It never asks the browser to fabricate a hardware fingerprint;
|
||||
hardware binding happens through the native licensing API.
|
||||
|
||||
## Apache hosting
|
||||
|
||||
Copy `website/public/` to `/srv/amnesia/website/public` and follow
|
||||
[`../licensing/README.md`](../licensing/README.md). Apache serves these files and
|
||||
forwards `/api/` to the licensing service. Production has no browser-based initial
|
||||
administrator setup; use the included provisioning command on your VPS.
|
||||
|
||||
No VPS deployment or Minecraft client/injector integration is performed by this
|
||||
project. The full first-device activation/verification API and a standalone
|
||||
consumer example are included in the licensing project.
|
||||
Reference in new issue
Block a user