Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JooHan Hong
joohanhong
Commits
f4e3396d
Commit
f4e3396d
authored
Mar 22, 2021
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker swarm, front-end add
parent
7d1bfcc0
Pipeline
#5274
passed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
README.md
DOCKER/SWARM/HONGSNET/README.md
+36
-0
No files found.
DOCKER/SWARM/HONGSNET/README.md
View file @
f4e3396d
...
...
@@ -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
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment