noteshare.space/server/.env.example

29 lines
948 B
Plaintext
Raw Permalink Normal View History

2022-07-02 21:44:10 +03:00
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
2022-07-02 21:54:55 +03:00
# If ENVIRONMENT=dev, CORS is enabled.
ENVIRONMENT=test
2022-07-02 21:46:38 +03:00
2022-07-02 21:54:55 +03:00
# Port at which the server is hosted.
2022-07-02 21:44:10 +03:00
PORT=8080
2022-07-02 21:54:55 +03:00
# URL at which the front-end UI is reached
FRONTEND_URL="http://localhost:3000"
# Database used for Prisma
DATABASE_URL="file:./dev.sqlite"
# Interval at which the database is checked for expired notes
# and expired notes are deleted.
CLEANUP_INTERVAL_SECONDS=60
# Rate limit for uploading notes.
POST_LIMIT_WINDOW=86400
POST_LIMIT=50
2022-07-02 21:54:55 +03:00
# Rate limit for downloading notes.
GET_LIMIT_WINDOW=60
GET_LIMIT=20