-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(save): allow to save larger datasets
> fix #288 The payload size limit is now configiurable via the envionment variable `PAYLOAD_SIZE_LIMIT`.
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
PAYLOAD_SIZE_LIMIT=20mb | ||
|
||
# DATABASE | ||
POSTGRES_USER=docker | ||
POSTGRES_PASSWORD=docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
declare global { | ||
namespace NodeJS { | ||
interface ProcessEnv { | ||
/** | ||
* Controls the maximum request body size. If this is a number, | ||
* then the value specifies the number of bytes; if it is a string, | ||
* the value is passed to the bytes library for parsing. Defaults to '15mb'. | ||
*/ | ||
PAYLOAD_SIZE_LIMIT?: string; | ||
NODE_ENV?: 'development' | 'production' | string; | ||
PORT?: string; | ||
ADMIN_EMAIL: string; | ||
ADMIN_PASSWORD: string; | ||
DUMMY_EDITOR_EMAIL: string; | ||
DUMMY_EDITOR_PASSWORD: string; | ||
POSTGRES_HOST?: string; | ||
POSTGRES_PORT?: string; | ||
POSTGRES_USER?: string; | ||
POSTGRES_PASSWORD?: string; | ||
POSTGRES_DATABASE?: string; | ||
} | ||
} | ||
} | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters