target / flottbot

A chatbot framework written in Go. All configurations are made in YAML files, or inside scripts written in your favorite language.
https://target.github.io/flottbot-docs/
Apache License 2.0
338 stars 60 forks source link

Refactor to use single port #56

Open wass3r opened 6 years ago

wass3r commented 6 years ago

Currently we expose three ports, for:

  1. Prometheus (8080)
  2. Slack Events API Receiver (3000)
  3. Slack Interactions API Receiver (4000)

Consider refactoring to use a single port. Provide an ability to register a handler for any path and by default register handlers for the above, if applicable.

Also, add a configuration option to set the port the user wants to use.

This will reduce number of ports to expose/manage and allow easier deployments in some cases.

wass3r commented 1 year ago

will take the opportunity to also move from gorilla/mux to something else since that is now archived. currently, thinking of go-chi/chi since it's close and offers some other niceties such as no dependencies, etc. however, maybe just sticking to standard library is sufficient.

Nepo26 commented 1 month ago

Hey @wass3r, how is the development? Any timeline on this? Need help with anything?

wass3rw3rk commented 1 month ago

@Nepo26 thanks for the interest. not as fast as i hoped :) i had a refactor started that would allow each remote to register endpoints if needed and also set up common ones for metrics/health and then start (one) server with any configured endpoints; i can't commit to a deadline, but i will try to revive that here!