Commit f4e3396d authored by JooHan Hong's avatar JooHan Hong

docker swarm, front-end add

parent 7d1bfcc0
Pipeline #5274 passed with stages
in 45 seconds
...@@ -81,3 +81,39 @@ volumes: ...@@ -81,3 +81,39 @@ volumes:
``` ```
# Front-end (HA-Proxy)
```bash
# cat /etc/haproxy/haproxy.cfg
...중략
backend www_hongsnet_net
balance roundrobin
option forwardfor
option httpchk HEAD / HONGSNET_LVS
option httpclose
cookie SVID insert indirect nocache maxlife 10m
redirect scheme https code 301 if !{ ssl_fc }
# 에러 파일 설정
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
http-request cache-use web_cache
http-response cache-store web_cache
http-request set-src src
server tb2.hongsnet.net 172.24.0.151:80 cookie tb2 check fall 3 rise 2
server tb3.hongsnet.net 172.16.0.158:80 cookie tb3 check fall 3 rise 2
server tb3-docker.hongsnet.net 172.16.0.251:80 cookie tb3-docker check fall 3 rise 2
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment