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
Store both web & api configuration variables in the same file (api.yml) #360
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кажется, что после этого PR перестанет работать локальный docker-compose и надо бы это поправить.
Кажется или перестанет? |
Сейчас в нем используется web_config.json, который ты удалил. Вероятно, нужно настройки и в локальном docker-compose поменять, чтобы все работало так же, как до твоей ветки, то есть со включенными remote триггерами. |
Хотя, я проверил и вроде все даже будет работать. В любом случае нужно удалить этот конфиг из папки local, а так же перестать его подключать в docker-compose. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спасибо за фикс после rebase. У меня не осталось никаких вопросов, кроме того, который я @borovskyav задал.
api/handler/handler.go
Outdated
@@ -36,7 +35,9 @@ func NewHandler(db moira.Database, log moira.Logger, index moira.Searcher, confi | |||
|
|||
router.Route("/api", func(router chi.Router) { | |||
router.Use(moiramiddle.DatabaseContext(database)) | |||
router.Get("/config", webConfig(configFile)) | |||
router.Get("/web", web(webConfig)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pliner @borovskyav нет по вот этому вопросов?
я пока впилил обратно совместимые изменения, чтобы уже потом изменить путь
мне кажется занимать путь 'config' только для валидации контактов будет жирновато
хотя если мы будем сюда же потом втаскивать управление сендерами из api/web - то наверное тогда лучше оставить как было?
No description provided.