-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
global | ||
log stdout format raw local0 info | ||
maxconn 2000 | ||
tune.ssl.default-dh-param 2048 | ||
|
||
defaults | ||
log global | ||
|
||
timeout connect 3s | ||
timeout client 10s | ||
timeout server 10m | ||
|
||
|
||
frontend http_in_19901_1 | ||
bind *:19901 | ||
mode http | ||
|
||
acl is_rule_www_helloworld_com_19901_1_1 hdr(host) -i www.helloworld.com | ||
acl is_rule_www_helloworld_com_19901_1_2 hdr(host) -i www.helloworld.com:19901 | ||
use_backend srv_www_helloworld_com_19901_1 if is_rule_www_helloworld_com_19901_1_1 OR is_rule_www_helloworld_com_19901_1_2 | ||
|
||
backend srv_www_helloworld_com_19901_1 | ||
balance roundrobin | ||
mode http | ||
option forwardfor | ||
http-request set-header X-Forwarded-Port %[dst_port] | ||
http-request add-header X-Forwarded-Proto https if { ssl_fc } | ||
server srv-0 test_nginx.2.t5r94mjlced7m3t5orfjbowmm:80 check weight 1 | ||
server srv-1 test_nginx.1.p552hqxkdx88narjrp5kouwb2:80 check weight 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test_nginx.2.t5r94mjlced7m3t5orfjbowmm={"easyhaproxy.definitions":"http","easyhaproxy.host.http":"www.helloworld.com","easyhaproxy.localport.http":"80","easyhaproxy.port.http":"19901","com.docker.stack.image":"stenote/nginx-hostname","com.docker.stack.namespace":"test"} | ||
test_nginx.1.p552hqxkdx88narjrp5kouwb2={"easyhaproxy.definitions":"http","easyhaproxy.host.http":"www.helloworld.com","easyhaproxy.localport.http":"80","easyhaproxy.port.http":"19901","com.docker.stack.image":"stenote/nginx-hostname","com.docker.stack.namespace":"test"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters