-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Links expire if docker container restarted #51
Comments
Please make sure you run Send in production mode by setting 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 |
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. |
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):
|
Thank you, that solved it |
So I'm assuming I'm doing something wrong here and would really appreciate help. I've got the container up with a reverse proxy, it works great. I've noticed that inside the container, the uploads never go to the /uploads directory (or what it's mapped to outside docker) but instead go to /tmp/send-XXXXXX.
When I restart the container for any reason, the links are all expired and the items in the tmp folder remain there but are inaccessible. I thought it may have something to do with redis. I do have it running but I'm not sure if it's making use of it for this full self-hosted implementation. Thank you.
The text was updated successfully, but these errors were encountered: