- Install Docker: Download from Docker's official website.
- Run the Docker Container:
docker run -d -p 3001:3001 --name your-shrtn-container cordlesswool/shrtn
- Access the Application: Navigate to
http://localhost:3001.
- Download and Extract: Get the package from the releases page and extract it.
- Install Dependencies and Start:
bun install --production bun run db:migrate node ./index.js
- Access the Application: Navigate to
http://localhost:3001.
To configure the application, set the following environment variables. Default values are provided for convenience.
# Database connection string
DATABASE_URL=sqlite_file_name.db
# Base URL for the public-facing site, could also be provided by request headers
ORIGIN=http://localhost:5173
# Mail server configuration
MAIL_HOST=smtp.example.com
MAIL_FROM=noreply@example.com
MAIL_PORT=465
MAIL_USER=noreply@example.com
MAIL_PASS=secure_password
# Time-to-live settings for temporary and user-generated content
## Possible values: HOUR, DAY, WEEK, MONTH, YEAR, EVER
PUBLIC_TTL_TEMP=YEAR # Temporary content expires after 30 days
PUBLIC_TTL_USER=EVER # User-generated content expires after 1 year