gitignore

This commit is contained in:
Maxime Cannoodt 2022-07-02 20:44:10 +02:00
parent e9df8c8fcf
commit 7dd1734075
5 changed files with 21 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ node_modules
.env
.env.*
!.env.example
server/.env

View File

@ -8,7 +8,7 @@ ENVIRONMENT=dev
PORT=8080
FRONTEND_URL="http://localhost:3000"
DATABASE_URL="file:./dev.db"
DATABASE_URL="file:./dev.sqlite"
CLEANUP_INTERVAL_SECONDS=60

18
server/.env.example Normal file
View File

@ -0,0 +1,18 @@
# 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
ENVIRONMENT=dev
PORT=8080
FRONTEND_URL="http://localhost:3000"
DATABASE_URL="file:./dev.db"
CLEANUP_INTERVAL_SECONDS=60
POST_LIMIT_WINDOW_SECONDS=3 # 3 seconds
POST_LIMIT=1
# POST_LIMIT_WINDOW=86400 # 24 hours
# POST_LIMIT=50

2
server/.gitignore vendored
View File

@ -1,2 +1,2 @@
node_modules
build
build

Binary file not shown.