项目作者: themisir

项目描述 :
Routing and name server for microservices on local development environment
高级语言: Go
项目地址: git://github.com/themisir/congress.git
创建时间: 2021-09-07T22:16:35Z
项目社区:https://github.com/themisir/congress

开源协议:Apache License 2.0

下载


Congress

Ingress like routing and DNS service for microservices development.

Installation

// TODO: Add installation instructions

Configuration

Create a congress.yaml file on your project root directory. The file will
contain all the ingress like routes for our microservices. The file syntax
is similar to kubernetes ingress scheme.

  1. congress:
  2. ip: 127.0.0.1
  3. proxy:
  4. enabled: true
  5. port: 80
  6. tls:
  7. port: 443
  8. certFile: server.crt
  9. keyFile: server.key
  10. dns:
  11. enabled: true
  12. port: 23
  13. fallback: "8.8.8.8:53"
  14. rules:
  15. - host: myapp.dev
  16. defaultBackend: http://frontend-service:80/
  17. - host: api.myapp.dev
  18. paths:
  19. - path: /catalog
  20. backend: http://catalog-service:80/
  21. - path: /checkout
  22. backend: http://checkout-service:80/

congress.ip

IP address of the environment running congress instance. The IP address used to
respond DNS queries.

congress.proxy.enabled

(Default: true)

Sets whether or not congress reverse-proxy should be enabled for routing
requests.

congress.proxy.port

Port number for congress reverse-proxy server.

congress.proxy.tls.port

Port number for TLS enabled reverse-proxy server.

congress.proxy.tls.certFile

TLS certificate file path.

congress.proxy.tls.keyFile

TLS key file path.

congress.dns.enabled

(Default: true)

Sets whether or not congress DNS should be enabled. The DNS will respond to
questions for rules.host with congress.ip. The DNS could be used as default
name resolver on development environments.

congress.dns.port

Port number for congress DNS.

congress.dns.fallback

Fallback DNS server address. The queries will be sent to fallback DNS when
there’s no configured rule available for the queried hostname.