add example env webapp
This commit is contained in:
parent
613aaaf3f4
commit
1a2cb003b3
@ -4,12 +4,24 @@
|
|||||||
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
|
# 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
|
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
|
||||||
|
|
||||||
DATABASE_URL="file:./dev.db"
|
# If ENVIRONMENT=dev, CORS is enabled.
|
||||||
FRONTEND_URL="http://localhost:3000"
|
ENVIRONMENT=dev
|
||||||
|
|
||||||
ENVIRONMENT=prod
|
# Port at which the server is hosted.
|
||||||
PORT=8080
|
PORT=8080
|
||||||
|
|
||||||
CLEANUP_INTERVAL_SECONDS=600
|
# URL at which the front-end UI is reached
|
||||||
POST_LIMIT_WINDOW=86400 # 24 hours
|
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 window after which post limit is reset
|
||||||
|
POST_LIMIT_WINDOW="86400 # 24 hours"
|
||||||
|
|
||||||
|
# Max. posted notes within rate limit window
|
||||||
POST_LIMIT=50
|
POST_LIMIT=50
|
6
webapp/.env.example
Normal file
6
webapp/.env.example
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
# Server used to retrieve notes
|
||||||
|
VITE_SERVER_INTERNAL="http://localhost:8080"
|
||||||
|
|
||||||
|
# Branding applied to the navbar
|
||||||
|
VITE_BRANDING="Noteshare.space"
|
Loading…
Reference in New Issue
Block a user