From 34ca45a1b9a87fcdabe0815a63f7094214b19b1d Mon Sep 17 00:00:00 2001 From: Loudbook Date: Wed, 11 Dec 2024 21:22:41 -0500 Subject: [PATCH 1/3] MAX_PAYLOAD_SIZE --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1139491..b9430d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,7 @@ services: - DESCRIPTION=${DESCRIPTION} - DISABLE_NEW=${DISABLE_NEW} - FAVICON_URL=${FAVICON_URL} + - MAX_PAYLOAD_SIZE=${MAX_PAYLOAD_SIZE} depends_on: - backend networks: From e1e72cb8a0f34e2e9186e11fa823b232807629cd Mon Sep 17 00:00:00 2001 From: Loudbook Date: Wed, 11 Dec 2024 21:23:07 -0500 Subject: [PATCH 2/3] Update pastebook.conf --- pastebook.conf | 2 -- 1 file changed, 2 deletions(-) diff --git a/pastebook.conf b/pastebook.conf index cff6b05..e6db5c7 100644 --- a/pastebook.conf +++ b/pastebook.conf @@ -47,8 +47,6 @@ server { ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; - client_max_body_size 6M; - location / { proxy_buffering off; proxy_set_header X-Real-IP $remote_addr; From 2625d97d49785d9a75b02a88a7b7c93bbf7d5cae Mon Sep 17 00:00:00 2001 From: Loudbook Date: Wed, 11 Dec 2024 21:58:26 -0500 Subject: [PATCH 3/3] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e9e5504..fb075d4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ TITLE= DESCRIPTION= DISABLE_NEW= FAVICON_URL= +MAX_PAYLOAD_SIZE= ``` All of the following are optional. You can leave it all blank, or not even have a `.env` file at all. @@ -32,6 +33,8 @@ All of the following are optional. You can leave it all blank, or not even have `FAVICON_URL` - The URL that the favicon will be provided with. +`MAX_PAYLOAD_SIZE` - The maximum paste size in megabytes. + ### Creation Run the following. ```bash