Comments (4)
First I had the same issue, but I forget to pass REDIS_HOST and FILE_DIR explicity. With this Docker run command the deployment should be working fine (Replace Redis host IP):
(Copied from /docs/docker.md)
# create a network for the send backend and redis containers to talk to each other
$ docker network create timviseesend
# start the redis container
$ docker run --net=timviseesend -v $PWD/redis:/data redis-server --appendonly yes
# start the send backend container
docker run -d \
--net=timviseesend \
-v $PWD/uploads:/uploads \
-p 1443:1443 \
-e 'BASE_URL=https://send.example.com' \
-e 'MAX_FILE_SIZE=21474836480' \
-e 'MAX_EXPIRE_SECONDS=2592000' \
-e 'NODE_ENV=production' \
-e 'FILE_DIR=/uploads' \
-e 'REDIS_HOST=172.18.0.2' \
-e 'SEND_FOOTER_DMCA_URL=https://example.com' \
--name send_app \
registry.gitlab.com/timvisee/send:latest
from send.
Thank you, that solved it
from send.
Please make sure you run Send in production mode by setting NODE_ENV=production
.
For a Docker set-up, set the following property: https://github.com/timvisee/send-docker-compose/blob/6f517849cd6ef0a784bd02265346baade612d7f9/docker-compose.yaml#L46
Redis should be used when running in production mode. If you're still experiencing issues you can run MONITOR
within Redis to watch if any operation is coming through.
from send.
MONITOR
Great, thank you for this assistance. I missed putting it in production. I can see it now does communicate with redis and links survive restarts of the docker container. However, while the link is active the file cannot be downloaded. It just goes to the download progress bar and then back to the link page.
I notice that the upload folder is still unused and the tmp folder contains a new /send-XXXXXX folder each time the docker container restarts. Moving files from the previous tmp folder to the current one does enable all the previous links to function again but this is definitely not what you intend. The log just shows [ 'https://[...MYBASEURL...]', 'wss://...MYBASEURL...' ] repeatedly.
Have you encountered anything like this? Thank you.
from send.
Related Issues (20)
- Websockets HOT 4
- Add documentation on how it works HOT 3
- Upload speed limit HOT 1
- Video and Image previews enable as an option?
- Unable to get base url HOT 6
- tweak the frontend HOT 1
- BASE_URL not used everywhere HOT 1
- Changes made in config.js does not have any effect in the UI (yunohost installation) HOT 1
- Unfitting Logo Viewbox Size
- [Request]: Add expiry timer to download page
- What permission should be given to GCS to only allow access from the send deployment
- Could some point me at the right direction to make send https? HOT 3
- Where are file saved? HOT 1
- How to solve the puzzle of max filesize? HOT 2
- Clarify path of custom files for docker env variables (documentation ) HOT 1
- Option to save to and load from a savestate file HOT 2
- Any plans to use rust for refactoring? HOT 2
- Application crash using Plesk Obsidian 18.0 and docker 20.10.21 on Debian 10 HOT 2
- How to personalize the app ? Customizing CSS, wallpaper, ico, footer… HOT 1
- [FeatureRequest] Add an environment variable to disable darkmode or an extra one for logo on darkmode
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.