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 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: 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;