Untitled
unknown
plain_text
a year ago
873 B
6
Indexable
# Global settings
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
# Default settings
defaults
log global
option httplog
option dontlognull
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
# Frontend configuration
frontend http_front
bind *:80
acl is_http_request path_beg /
use_backend http_back if is_http_request
# Backend configuration
backend http_back
server webserver localhost:8085 maxconn 200
# Stats page (optional)
frontend stats
bind *:8404
stats enable
stats uri /stats
stats auth admin:password # Ganti dengan username dan password yang diinginkan
stats refresh 10s
Editor is loading...
Leave a Comment