问题 您在我的配置中看到什么错误。
背景:学习HAProxy配置,我想在使用运行时API进行此操作之前获取基本配置设置。我正在docker-container中运行。
76fd2cab1583 gitlab/gitlab-ee:latest "/assets/wrapper" 5 days ago Up 5 days (healthy) 0.0.0.0:3222->22/tcp, 0.0.0.0:3001->80/tcp, 0.0.0.0:3443->443/tcp gitlab
de7fe0513233 registry "/entrypoint.sh /etc…" 5 days ago Up 5 days 0.0.0.0:3002->5000/tcp
问题:8080上不显示统计信息。22上不显示gitlab。
成功:gitlab确实在80上显示为127.0.0.1:80/devops/gitlab
global
daemon
maxconn 256
defaults
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend fe_main
bind *:80
mode http
acl gitlab_url_80 url_beg -i /devops/gitlab
use_backend be_gitlab_80 if gitlab_url_80
acl gitlab_url_22 url_beg -i /devops/gitlab
use_backend be_gitlab_22 if gitlab_url_22
acl gitlab_url_443 url_beg -i /devops/gitlab
use_backend be_gitlab_443 if gitlab_url_443
acl docker_url url_beg -i /devops/docker
use_backend be_docker if docker_url
backend be_gitlab_80
mode http
server gitlab 127.0.0.1:3001
backend be_gitlab_22
mode http
server gitlab 127.0.0.1:3222
backend be_gitlab_443
mode http
server gitlab 127.0.0.1:3443
backend be_docker
mode http
server docker 127.0.0.1:3002
frontend privoxy-front
bind :8080
mode http
default_backend public_www
# public access (limited to this backend only)
backend public_www
mode http
server srv1 127.0.0.1:8080
stats enable
stats hide-version
stats scope .
stats uri /admin?stats
stats realm Haproxy\ Statistics
stats auth admin1:AdMiN123
stats auth admin2:AdMiN321
# internal monitoring access (unlimited)
backend private_monitoring
mode http
stats enable
stats uri /admin?stats
stats refresh 5s