Last active
June 17, 2016 12:42
-
-
Save 91pavan/281a52d451066ee4ee0c043aed101b63 to your computer and use it in GitHub Desktop.
Haproxy configuration for acting as a proxy between two or more backend vertx verticles and a blog app frontend
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
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
timeout connect 5000 | |
timeout client 50000 | |
timeout server 50000 | |
log 127.0.0.1 local0 | |
frontend http-in | |
bind *:8084 | |
acl user_url url_beg /Services/rest/company | |
acl user_url url_beg /Services/rest/user | |
acl blog_url url_beg /Services/rest/blogs | |
use_backend blogService if blog_url | |
use_backend userService if user_url | |
backend userService | |
server server1 localhost:8086 maxconn 32 | |
backend blogService | |
server server2 localhost:8085 maxconn 32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the two vertx backend:
https://github.com/91pavan/vertx-blog-service - blog verticle
https://github.com/91pavan/vertx-user-service - user verticle
App Frontend: https://github.com/91pavan/blog-app-frontend