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

Configuration using an asset #608

pofider opened this issue Aug 1, 2019 · 0 comments

Configuration using an asset #608

pofider opened this issue Aug 1, 2019 · 0 comments


Copy link

@pofider pofider commented Aug 1, 2019

It could be possible to configure jsreport through a "system" asset entity.

The idea is that the user creates folder jsreport and inside asset config.json.
Inside can the user add some configuration values the same way it is done in jsreport.config.json.
This can be for example some timeouts, allowed modules in scripts or studio white labeling.

Technically we would load at the beginning of every request this asset and put it on the req.context.config. The other extensions would use the values to adapt the behavior.

As the biggest motivation at this moment, I see the white labeling. The jsreportonline user would be able to upload logo as an asset and change some theme variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.