-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add/edit the mailer through the web interface after setup #1714
Comments
I think we should enable overall configuration through the webinterface after installing, not only for mail settings |
There's a lot of values that can not be changed during runtime, which is why Gitea doesn't allow for them to be changed in the WebUI.
But the biggest problem is that we don't load partial configs. So Gitea wouldn't know what has been changed, and would therefore require a complete restart done by an outsider (see |
So currently Gitea can not reinitialize itself? Most software accepts this limitation by including a warning like: "A restart is needed before changes will take effect". Would this be an okay compromise? There are still good reasons to allow editing in the web interface. For example, settings will be validated before they are written, and settings that depend on other settings can be marked as required. The core problem of this issue is that the settings I needed did not exist in my config file, nor on the web config page. I needed to piece them together through trial and error until I had a valid config again. |
https://github.com/go-gitea/gitea/blob/master/conf/app.ini#L263-L294 With that said, our documentation definitively needs improvement 😂 |
@bkcsoft Your link is now 404. I am a new user who was shocked to find I had to SSH in and modify a text file every time I need to change a setting. I would think that at a minimum there could be a list of simple configs that could be changed without a full restart. For example, I want to change the items in the "Service Configuration" section of the config page. There was no edit button. You already have the settings broken in to sections in the UI. Each of those could have an edit button. This would allow you to add the ability to edit, one section at a time, starting with sections that are easy to implement with no restart required. |
I would like to use https://github.com/fsnotify/fsnotify to implement the config reloading. Is there a list of configs that can be changed without restart? |
[x]
):Description
I would like to ask for the ability to add the mailer through the web interface after setup. Also I think it is common sense to be able to edit the mailer configuration through the web interface. I did not initially set one up, so my custom app.ini config only contained:
[mailer]
ENABLED = false
When I changed this to
true
, Gitea failed to start. I found in the log:2017/05/12 10:37:51 [...s/setting/setting.go:1274 newMailService()] [E] Invalid mailer.FROM (): mail: no address
This field was not in my config, so I had to copy it from source and complete the configuration before I could get Gitea to start.
The text was updated successfully, but these errors were encountered: