Add env var to toggle upload history
Would it be possible to add a display of all of the uploaded files that could be toggled via something like a Docker environment variable? A dumb simple UI like this is exactly what I'm looking for to use in a project of mine, if it also displayed the uploaded files too.
Originally posted by @LunarNightShade in #65
As a straightforward workaround, if you publish dumbdrop via an http server such as nginx you can expose the local upload folder so that uploaded files can be shared via their url.
For example here's my config:
/var/dumbware/dumbdrop/compose.yml
services:
dumbdrop:
image: dumbwareio/dumbdrop:latest
restart: unless-stopped
ports:
- 3033:3000
volumes:
- ./uploads:/app/uploads
/etc/nginx/sites-enabled/dumbdrop
server {
listen 443 ssl;
server_name REDACTED;
root /var/dumbware/dumbdrop;
location / {
proxy_pass http://localhost:3033;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
location /uploads {
autoindex off;
autoindex_exact_size off;
}
}
Please take a look into the merged PR https://github.com/DumbWareio/DumbDrop/pull/70