The app reads each setting from the environment variable first, then from config.json in the data folder (which the panel writes), then falls back to the default. The panel shows a setting that the environment sets as locked.
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Sign-in provider |
AUTH_PROVIDER |
clerk |
yes |
How people sign in: clerk (hosted) or better-auth (built in, no outside account). You choose it once, when you set up the install. The app records the choice and refuses to start with a different one. |
| First administrator email |
INITIAL_ADMIN_EMAIL |
|
yes |
The account with this email becomes an administrator the first time it signs in. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Better Auth secret |
BETTER_AUTH_SECRET |
|
yes |
A long random string that signs sign-in cookies and tokens. The setup wizard generates one. Changing it signs everyone out. Required when the provider is better-auth. Secret. |
| Who can create an account |
AUTH_SIGNUP |
invite |
no |
invite: only people an administrator sends a one-time link to can sign up. open: anyone can sign up and waits for approval. |
| Email verification and password reset |
AUTH_EMAIL_FLOWS |
off |
yes |
on: new accounts must confirm their email, and members can reset their own password by email. Needs the mail server settings. Administrators can always hand out one-time links. |
| Require two-factor for administrators |
AUTH_ADMIN_TWO_FACTOR |
off |
yes |
on: administrators must set up an authenticator app. Needs the mail server settings, because two-factor recovery uses them. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Clerk publishable key |
CLERK_PUBLISHABLE_KEY |
|
no |
From API keys in the Clerk dashboard. The key is public, and the browser needs it to start Clerk. |
| Clerk secret key |
CLERK_SECRET_KEY |
|
yes |
From API keys in the Clerk dashboard. Verifies session tokens. Required when the provider is clerk. Secret. |
| Clerk JWT public key (PEM) |
CLERK_JWT_KEY |
|
yes |
Optional. With the instance’s public key, tokens verify without a network call to Clerk. You can write newlines as \n. Secret. |
| Clerk webhook signing secret |
CLERK_WEBHOOK_SECRET |
|
yes |
The signing secret of the webhook that points at https://<host>/api/webhooks/clerk (user.created, user.updated, user.deleted). Secret. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Mail server (SMTP host) |
SMTP_HOST |
|
yes |
Optional. The app uses it for email it sends itself. Clerk sends its own sign-in emails. The app works without it. |
| Mail server port |
SMTP_PORT |
587 |
yes |
Usually 587 (STARTTLS) or 465 (TLS). |
| Mail server username |
SMTP_USER |
|
yes |
Leave it empty if the server needs none. |
| Mail server password |
SMTP_PASSWORD |
|
yes |
Goes with the username. Secret. |
| Send mail from |
SMTP_FROM |
|
yes |
The address the app sends as, for example club@example.org. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Port |
PORT |
3003 |
yes |
The port the app listens on. |
| Listen address |
HOST |
127.0.0.1 |
yes |
Use 127.0.0.1 for local development and 0.0.0.0 inside the container, where Docker restricts exposure. |
| Public address |
PUBLIC_URL |
|
no |
The web address people use to reach the install, for example https://log.example.org. The app uses it for links in messages. |
| App name |
APP_NAME |
Shackworks |
yes |
Appears in the browser tab and the log. |
| Instance kind |
INSTANCE_ENV |
production |
yes |
dev marks a test instance with a banner, [DEV] in the tab title and noindex headers. |
| Data folder |
DATA_DIR |
./data |
yes |
Holds the database, the config file, logs and backups. |
| Database file |
DB_PATH |
worked out |
yes |
The path to the SQLite file. It defaults to db.sqlite in the data folder, or to the only other .db file there. |
| Web app folder |
WEB_DIR |
worked out |
yes |
The folder with the built web app. It defaults to the one inside the image. If it finds none, the app serves only the API. |
| Content-Security-Policy |
CONTENT_SECURITY_POLICY |
report-only |
yes |
Tells browsers to load styles, fonts and images only from this install and the map tiles, so a theme cannot pull in anything from elsewhere. report-only logs what it would block. enforce blocks. off sends no policy. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Hosting panel listen address |
PANEL_HOST |
127.0.0.1 |
yes |
127.0.0.1 makes the panel reachable from the server only, so you use an SSH tunnel. 0.0.0.0 makes it reachable from the network, which you need only while you set up a fresh server. |
| Hosting panel port |
PANEL_PORT |
8080 |
yes |
The panel’s port, separate from the app’s. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Shackworks Net address |
HUB_URL |
https://shackworks.app |
yes |
The central server this install can link to. Change it only to test against another one. The install sends nothing to it until you link. |
| HamQTH username |
HAMQTH_USER |
|
yes |
Optional. Enables callsign lookups through HamQTH. |
| HamQTH password |
HAMQTH_PASSWORD |
|
yes |
Goes with the username. Secret. |
| Radio bridge token |
RADIO_BRIDGE_TOKEN |
|
yes |
The shared secret that radio bridges present on /api/radio/bridge. Secret. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Log level |
LOG_LEVEL |
info |
no |
One of trace, debug, info, warn, error, fatal or silent. You can also change it at runtime under Admin, Server log. |
| Setting |
Environment variable |
Default |
Needs restart |
Notes |
| Development sign-in bypass user |
DEV_AUTH_BYPASS_USER |
|
yes |
For local development only. Requests from localhost with no token act as this Clerk user id. The app refuses the setting for proxied requests. |
Secrets appear masked in the panel, and the app never sends them back to the browser.