GO Documentation
Reference

Configuration Reference

Complete reference table for all GO Shortener environment variables.

Configuration Reference

This page documents every environment variable supported by GO Shortener. All settings should be specified in /root/Go-shortner/.env.


Server & Networking

VariableTypeDefaultExample ValueDescription
PORTInteger30003000Local TCP port the HTTP server binds to.
HOSTString127.0.0.1127.0.0.1Network interface address to listen on.
BASE_URLURLhttp://localhost:3000https://go.arcn.onlinePublic canonical base URL used for prefixing short links and OAuth redirects.
APP_ENVStringproductionproductionEnvironment mode (development or production).

Storage & Database

VariableTypeDefaultExample ValueDescription
DB_PATHPath./data/go.sqlite/root/Go-shortner/data/go.sqlitePath to the SQLite database file on disk. Parent directories are created automatically.

Security & Sessions

VariableTypeDefaultExample ValueDescription
JWT_SECRETString(Auto-generated)4f9e8a7b6c5d4e3f2a1b0c9d8e7f6a5b32+ character random string used for cryptographic session signing.
SESSION_DURATION_HOURSInteger7272Validity period of the go_session cookie in hours.

Quotas & Lifecycles

VariableTypeDefaultExample ValueDescription
ANONYMOUS_DAILY_QUOTAInteger1515Maximum number of short links an anonymous visitor can create per 24 hours.
REGISTERED_MONTHLY_QUOTAInteger100100Maximum number of short links a standard registered user can create per calendar month.
ANONYMOUS_MAX_EXPIRATION_DAYSInteger77Ceiling duration (in days) for anonymous short links.
REGISTERED_MAX_EXPIRATION_DAYSInteger365365Ceiling duration (in days) for registered user links.

Cloudflare Turnstile CAPTCHA

VariableTypeDefaultExample ValueDescription
TURNSTILE_ENABLEDBooleanfalsetrueToggle Turnstile CAPTCHA verification on forms.
TURNSTILE_SITE_KEYString""0x4AAAAAA...Public site key loaded in browser widgets.
TURNSTILE_SECRET_KEYString""0x4AAAAAA...Confidential secret key used for server-side verification.

Firebase Authentication (Google OAuth)

VariableTypeDefaultExample ValueDescription
FIREBASE_API_KEYString""AIzaSy...Firebase Web App API Key.
FIREBASE_AUTH_DOMAINString""project.firebaseapp.comFirebase Web App Auth Domain.
FIREBASE_PROJECT_IDString""my-project-idFirebase Project Identifier.
FIREBASE_STORAGE_BUCKETString""project.firebasestorage.appFirebase Storage Bucket.
FIREBASE_MESSAGING_SENDER_IDString""1234567890Firebase Cloud Messaging Sender ID.
FIREBASE_APP_IDString""1:123456:web:abcdefFirebase Web App Identifier.

Development Seed Credentials

VariableTypeDefaultExample ValueDescription
ADMIN_BOOTSTRAP_EMAILString""admin@example.comSeed email used only on fresh installs if no users exist.
ADMIN_BOOTSTRAP_PASSWORDString""ChangeMe123!Seed password used only on fresh installs if no users exist.
Copyright © 2026