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

#842 add mediatag code generator script #846

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

CorvusCorax
Copy link

As mentioned in #842 code for www/common/media-tag-nacl.min.js is missing. Instead of maintaining significant code duplication for media-tag functionality from within the UI and for embedding on 3rd party sites, it makes much more sense to compile this script from all the requirements.

Although it would be cleanest to remove www/common/media-tag-nacl.min.js from the repository altogether (putting it into .gitignore) and recompiling it as part of the cryptpad installation process, I instead added the autogenerated media-tag-nacl.min.js to the repo, as this does not require changes to any deploy/docker scripts or the installation procedure.

Even if the file were to be auto-generated by server.js on startup, the folder it resides in might not have write-access on production sites, and auto-compiling the file on every request/serving it dynamically would probably invoke too much overhead.

As such this seemed to be the cleanest and easiest solution for now, with the future option to purge the file from the repo in the process of a more wholesome installation procedure overhaul (including a compilation phase as part of the setup procedure)

@ghost ghost added the Dependencies Any software dependancies problems label Aug 8, 2022
@ghost ghost requested a review from yflory September 7, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Any software dependancies problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant