Installing Stardust
Stardust is simple to setup, even for someone with zero IT knowledge.
Before you get started, make sure that you have the following already set up:
- Node.js 18 or later installed, plus
node-gyp
andpnpm
. Download Node.js from Nodesource andnode-gyp
andpnpm
by running the following:
- Docker setup. If you're using a Unix-based system, you can follow the instructions here.
- A PostgreSQL database. You can use Docker to spin one up by running
Setup
Create a new docker network with ICC disabled
Clone the Stardust repository and install the dependencies.
Make a new file in .config/config.json
and first, fill it with the following:
and then the respective fields.
General
Prop | Type | Default |
---|---|---|
databaseUrl | string | - |
metadataUrl | string | - |
docker | DockerConfig | - |
auth | AuthConfig | - |
session | SessionConfig | - |
Session (SessionConfig
)
Prop | Type | Default |
---|---|---|
keepaliveDuration | number | 1440 |
dnsServers | string[] | system default |
usageLimits | { instance?: number | undefined; user?: number | undefined; } | - |
Docker (DockerConfig
)
Prop | Type | Default |
---|---|---|
type | "http" | "socket" | "socket" |
socket | string | "/var/run/docker.sock" |
host | string | - |
port | number | - |
network | string | - |
Auth (AuthConfig
)
Prop | Type | Default |
---|---|---|
secret | string | - |
turnstile | TurnstileConfig | - |
credentials | { signups?: boolean | undefined; } | - |
oauth | { providers: { [key: string]: { clientId: string; clientSecret: string; issuer?: string | undefined; }; }; } | - |
TurnstileConfig
Prop | Type | Default |
---|---|---|
secret | string | - |
siteKey | string | - |
Setup the database
You can also pull the docker containers at the same time by adding --pull
.
Build Stardust
Start Stardust
It is recommended to use a tool like pm2
or systemd
to keep Stardust running in the background.
Install with pnpm i -g pm2
, and then run pm2 start "pnpm start" --name stardust
.
Stardust will now be running on port 3000.
Last updated on