Comments (4)
Ok I opened 2 PRs to improve the docs and example configs:
- #34
- timvisee/send-docker-compose#4
- semi-related: #36
You can probably close out this issue now, or wait till the final PR is merged, up to you 👍
from send.
Based on https://github.com/timvisee/send/blob/master/server/config.js it looks like I might have to set EXPIRE_TIMES_SECONDS
to get the UI to change?
If that's the case, should the documentation + example compose file be updated to include these extra vars that need to be set to update the UI?
(also are the ANON_
prefixed settings still used or are those removed? if not, we should update the example config in timvisee/send-docker-compose
)
from send.
I managed to increase it to 100k downloads and 365 days max, but I still cant get it to allow more than that no matter how I set the environment variables. It seems to ignore anything over those values, but I cant figure out where they're hardcoded.
This config should allow 1h, 1d, 1w, 1m, 1y, 5y
, 250k
downloads, and 10GB
limits, but the UI doesn't show anything over 100,000
and 365 Days
:
services:
send:
...
environment:
...
# Edit: (this is broken, see bottom of this comment for working version)
- EXPIRE_TIMES_SECONDS="[3600, 86400, 604800, 2592000, 31536000, 157680000]"
- DEFAULT_EXPIRE_SECONDS=157680000
- MAX_EXPIRE_SECONDS=315360000
- DOWNLOAD_COUNTS="[1, 2, 5, 10, 15, 25, 50, 100, 1000, 10000, 100000, 250000]"
- MAX_DOWNLOADS=250000
- MAX_FILES_PER_ARCHIVE=4096
- MAX_ARCHIVES_PER_USER=4096
- MAX_FILE_SIZE=10747904000
Edit: the config is making it to the frontend correctly in DEFAULTS
, so something in the UI code is preventing the highest options from appearing in the dropdowns
Edit2: Aha! A clue here. I think the array config vars are parsed as CSV, not JSON. It's breaking the first and last values because of the [
and ]
.
from send.
Ok got it working. Changing the array config options to CSV values worked.
Here's the final working config to allow up to 10GB uploaded for 5yr and 250k downloads.
services:
send:
...
environment:
...
# these update both the backend limit and the limit shown/enforced in the UI
- MAX_FILE_SIZE=10747904000
- MAX_FILES_PER_ARCHIVE=1024
# these update the UI dropdowns and should be a CSV of bare integers (first value is used as the dropdown default)
- EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000,157680000
- DOWNLOAD_COUNTS=1,2,5,10,15,25,50,100,1000,10000,100000,250000
# these are global limits enforced by the backend and have no effect on the UI
- DEFAULT_EXPIRE_SECONDS=157680000
- MAX_EXPIRE_SECONDS=315360000
- MAX_DOWNLOADS=250000
from send.
Related Issues (20)
- Total max file size of an instance HOT 2
- Transfer speed drops considerably as soon as the tab is not active HOT 3
- SSO or LDAP auth
- Fix permission on upload folder in docker HOT 2
- Anyone figured out a way to force dark mode? HOT 4
- Any way to make the upload accessible only for internal users and download for external? HOT 2
- If you click the logo then you're redirected to the homepage. How can I turn this off? HOT 2
- Logo reverse back after npm run build
- Error with redirection because of the # in the last part of the link url
- Add `unlimited` as an option for max downloads when sharing a file
- Uploading a folder not working HOT 2
- CUSTOM_DESCRIPTION does not seem to work
- Using send with password behind apache reverse proxy failed HOT 2
- Uploads fail after Send has been running for a extended period fo time HOT 1
- Can`t install Send
- Is it possible to recover an expired link data? HOT 1
- customizing the text under Simple, private file sharing HOT 2
- Is there a possibility to keep the unexpired send-archive always visible? HOT 1
- [FEATURE REQUEST] Add folder picker option like WeTransfer HOT 3
- [Request] ARM64 Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from send.