Picoshare
version: '3.3'
services:
picoshare:
environment:
- PORT=3001
- PS_SHARED_SECRET=XXXXXX
- PS_BEHIND_PROXY=true
ports:
- '3001:3001/tcp'
command: -db /data/store.db
volumes:
- '/srv/path/Files/Picoshare/data:/data'
container_name: picoshare
image: mtlynch/picoshare
restart: unless-stopped
If behind a reverse proxy like nginx proxy manager, add this to the config in the advanced section of your domain with the values of your choice :
client_max_body_size 2G;
proxy_request_buffering off;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
-
client_max_body_size 2G;→ allows files up to 2 GB (you can adjust this higher or lower as needed). -
proxy_request_buffering off;→ prevents Nginx from loading the entire file into memory before sending it to the backend. -
The three
*_timeoutdirectives extend the timeouts in case the upload takes a long time.
No comments to display
No comments to display