Skip to content
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

fix(server): file persistence for local upload provider #610

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

raymon-zhang
Copy link

Fix:

  • create a data/rctf-uploads folder in the install script
  • in the docker-compose file, create a docker bind mount from the data/rctf-uploads folder to /app/uploads in the rctf
  • in the local upload provider, save and load uploadMap from the uploadMap.json file

@chen-robert chen-robert requested a review from ginkoid July 25, 2023 12:26
Copy link
Member

@ginkoid ginkoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if two rctf instances use the same uploads directory, we want them to be able to share uploads without a restart. can you do something similar to this? https://github.com/redpwn/rctf/blob/next/packages/server/src/providers/uploads/local/index.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants