Nginx AccessPoint

Customize your web service entrance —— Nginx

Add New Service to Nginx

  1. nginx_upstream: # domain names and upstream servers
  2. - { name: home , domain: home.pigsty.cc , endpoint: "10.10.10.10:80" } # default -> index.html (80)
  3. - { name: grafana , domain: demo.pigsty.cc , endpoint: "10.10.10.10:3000" } # pigsty grafana (3000)
  4. - { name: loki , domain: l.pigsty.cc , endpoint: "10.10.10.10:3100" } # pigsty loki (3100)
  5. - { name: prometheus , domain: p.pigsty.cc , endpoint: "10.10.10.10:9090" } # pigsty prometheus (9090)
  6. - { name: alertmanager , domain: a.pigsty.cc , endpoint: "10.10.10.10:9093" } # pigsty alertmanager (9093)
  7. - { name: consul , domain: c.pigsty.cc , endpoint: "127.0.0.1:8500" } # pigsty consul UI (8500) (domain required)
  8. - { name: postgrest , domain: api.pigsty.cc , endpoint: "127.0.0.1:8884" } #== optional ==#
  9. - { name: pgadmin , domain: adm.pigsty.cc , endpoint: "127.0.0.1:8885" }
  10. - { name: pgweb , domain: cli.pigsty.cc , endpoint: "127.0.0.1:8886" }
  11. - { name: bytebase , domain: ddl.pigsty.cc , endpoint: "127.0.0.1:8887" }
  12. - { name: jupyter , domain: lab.pigsty.cc , endpoint: "127.0.0.1:8888" }
  13. - { name: gitea , domain: git.pigsty.cc , endpoint: "127.0.0.1:8889" }
  14. - { name: minio , domain: sss.pigsty.cc , endpoint: "127.0.0.1:9000" }

Regenerate nginx config add reload to take effect

  1. ./infra.yml -t nginx_config
  2. ansible meta -b -a 'nginx -s reload'

Nginx Access Point - 图1

Last modified 2022-06-03: add scaffold for en docs (6a6eded)