-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Clean up settings in PHP headers #2089
Comments
@ghormann I have a solution for this which limits the settings exposed on a page by page basis based on a config json which allows us to define which pages a setting is to be exposed on (and has the option to expose on all pages if required) - tested and working in my dev.... the bit I need to do is go through an identify what actually needs exposing where.... you happy for me to finish and push to master? |
This is what my new version looks like: `
|
@OnlineDynamic I have no problem if you take this over, but why add the additional configuration file? Should we just use settings.json. You can add a new optional field to specify any restrictions. |
OK good point- I have add the JSExposed logic to settings.json rather than having a seperate config file |
@ghormann you will see I have pushed my initial changes for this into master... next step is to clean up some of the settings which aren't defined in the settings.json file currently... for the mo I have auto included them to stop anything breaking... there is still a chance that a setting that is defined in the json hasn't correct got the page(s) its needed on correctly defined so will need a bit of testing and keep in the back of mind if something JS isn't working |
Currently, every single setting is replated into the header of every single page (including some which might be sensitive). There is probably a better way to handle some of the more sensitive settings.
fpp/www/config.php
Lines 735 to 747 in 99b25c3
The text was updated successfully, but these errors were encountered: