-
-
Notifications
You must be signed in to change notification settings - Fork 308
feat: add config file #740
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
Conversation
Co-authored-by: Elias Schneider <[email protected]>
I will implement those changes in a few days. :) |
Sure, take your time :) |
I've been busy the last few weeks and, unfortunately, will be in the next few weeks too. I will implement this feature right after that. :) |
Sure take your time :) |
@m-mattia-m Do you need any help with this? I could help get it over the line if you're out of time or lost interest. |
Hi @brunnels, unfortunately I have a lot going on at the moment, so I plan to implement it at the end of March or the beginning of April. However, if you need it sooner or prefer to do it earlier, feel free to implement it yourself. :) |
@brunnels, I hope you haven't already started implementing this feature. I was overthinking it so much that I ended up starting to implement it myself. 😆 @stonith404, what does the "order" do in the config table? I couldn’t figure it out, and there’s an open TODO in my MR. :) |
Thanks, I'll look into it ASAP. The "order" property just defines in which order the input gets displayed on the admin page. |
I made some additional changes. The yaml config won't be saved to the database now, it will be read from the memory. I've tested it but could you also test it again to make sure that everything works as expected? |
I think there was an issue in the I tested it with these changes, and I think it should be fine. However, I would appreciate it if you could test it again on account of changing the |
Sorry, I should have explained this better. I wanted to make it possible to set only a few config variables from the YAML file. With my changes, the admin can set certain values like the App URL and LDAP configuration in the Or do you think this approach is too confusing? By the way, I also added a script that automatically generates the |
I think it would be more straightforward to have either a dynamic config or a static config via a configuration file. Most configurations are set once at the beginning and are rarely changed afterward. If you need to make updates, you can simply modify the config.yaml file and run docker compose down && docker compose up -d (or just delete the K8s pod). Another question: Did you intentionally remove the initUser config? I believe it would be very useful to create an admin user via the configuration file (though you should change the password once it's up and running). That said, generating the config.yaml file via a script makes sense and is a good idea. |
…he `config.yml`" This reverts commit 7dbdb67.
Thanks for the feedback. Yeah you're right this makes it unnecessarily complicated for a minimal value. I reverted the change and updated the text in the info box accordingly. I missed Does everything look good to you know? |
I tested it again and it worked for me. I think it looks good, so we could merge it. :) |
Great, thanks again :) |
This PR gives the users the possibility to set up their pingvin-share instance with a single config file (config.yaml). You can mount this file into the container, and then it is going to set the value into the config table. However, this option is disabled per default.