-
Notifications
You must be signed in to change notification settings - Fork 1
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
User-level configuration? #31
Comments
Hi @renyuneyun, good question! @joachimvh do you know of way of doing this? |
In theory yes, but not easily. So in practice not really. You would either need a solution with some new custom classes to track the calendar information of users when they register, or you would somehow need to have a custom Components.js configuration for every pod that contains the calendar URL and the correct routing as the root config does in this project. CSS actually has support for having a custom Components.js configuration per pod, but this feature is mostly hidden because there never was a real need for this. Some of the relevant components might also need to be upgraded as these were made when the internal storage architecture was not yet fully set. Even with different configurations per pod, some changes would still be needed somewhere so the user could send along their calendar URL during registration. |
Hi both. Thanks for the comments. Indeed, I was thinking of the mechanism for custom configuration per pod, and found that the
Now there is a use case :)
I guess this is not the most problematic part, as currently solid-calendar-store also does not provide a UI for configuration. Server maintainers should be able to cope with that. A different question would be more meaningful here: is it possible for the configuration to be dynamically reloaded while server is running? |
No. Not for the whole server at least. This is why for those dynamic pod configurations we need several utility classes that modify the routing on the fly. This all happens in memory currently, which is one of the issues with the feature since this means this probably won't work with multithreading. If you want to modify your main components.js config every time a new user gets added you would have to restart the server every time. |
Thanks for the reply.
That matches my intuition. Our team is thinking of deploying CSS servers (with the calendar store), to be tested in our team. Having to set up one server per user is really a pain, let alone that everyone will still update their configurations and need to restart their servers. |
Is there not a way to automate this? In the past I created scripts to use a template config and fill in the calendar URL. |
Possible for the server (process) part, but hard for the DNS part -- it's doable in principle, but we don't have the relevant experience. And when users want to update their config, manual intervention is still needed. This is the same situation for a single server process with different configurations for different pods; while single-process-multiple-config-different-pods will save the effort in DNS and web reverse proxy configuration. |
@renyuneyun Yeah I see what you mean. The DNS and reverse proxy thing I do that manually, because our office is around 30 people so that is still doable. |
Right now, the README describes that the (calendar) configuration should be loaded upon service start. It assumed the server is for a single user (pod) sits on the root.
Is there a way to allow the server to serve multiple pods, and each of them have their own calendar configurations as a file?
The text was updated successfully, but these errors were encountered: