You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
When you develop A&AI with MAC OS X laptop, Setting up HAProxy on your local machine needs to follow a different step.
HAProxy server listens on port 8443 and it forwards each request to Resource service or Traversal service.
eyJleHRTcnZJbnRlZ1R5cGUiOiIiLCJnQ2xpZW50SWQiOiIiLCJjcmVhdG9yTmFtZSI6Illvb25zb29uIEphaG5nIiwib3V0cHV0VHlwZSI6ImJsb2NrIiwibGFzdE1vZGlmaWVyTmFtZSI6Illvb25zb29uIEphaG5nIiwibGFuZ3VhZ2UiOiJlbiIsImRpYWdyYW1EaXNwbGF5TmFtZSI6IiIsInNGaWxlSWQiOiIiLCJhdHRJZCI6IjgxNDA3NjU1IiwiZGlhZ3JhbU5hbWUiOiJBQUkgTG9jYWwgRGV2IEVudiIsImFzcGVjdCI6IiIsImxpbmtzIjoiYXV0byIsImNlb05hbWUiOiJTZXR0aW5nIHVwIEhBUHJveHkgZm9yIE1BQyBPUyBYIHVzZXIiLCJ0YnN0eWxlIjoidG9wIiwiY2FuQ29tbWVudCI6ZmFsc2UsImRpYWdyYW1VcmwiOiIiLCJjc3ZGaWxlVXJsIjoiIiwiYm9yZGVyIjp0cnVlLCJtYXhTY2FsZSI6IjEiLCJvd25pbmdQYWdlSWQiOjgxNDA3NjUwLCJlZGl0YWJsZSI6ZmFsc2UsImNlb0lkIjo4MTQwNzY2MiwicGFnZUlkIjoiIiwibGJveCI6dHJ1ZSwic2VydmVyQ29uZmlnIjp7ImVtYWlscHJldmlldyI6IjEifSwib2RyaXZlSWQiOiIiLCJyZXZpc2lvbiI6MSwibWFjcm9JZCI6ImY2NWE1ZjZkLTFlMzYtNGE5MS1iYWE0LTlhYTMyNjY4ZjRhNSIsInByZXZpZXdOYW1lIjoiQUFJIExvY2FsIERldiBFbnYucG5nIiwibGljZW5zZVN0YXR1cyI6Ik9LIiwic2VydmljZSI6IiIsImlzVGVtcGxhdGUiOiIiLCJ3aWR0aCI6IjM0MSIsInNpbXBsZVZpZXdlciI6ZmFsc2UsImxhc3RNb2RpZmllZCI6MTU4NzE1MDQ5OTAwMCwiZXhjZWVkUGFnZVdpZHRoIjpmYWxzZSwib0NsaWVudElkIjoiIn0=
- Download haproxy.cfg
- Download aai.pem
- Download Dockerfile
- Locate 3 files above in the same directory
- In your terminal type `$ docker build -t haproxy . `
- Run the HAProxy docker image by `$docker run -d -p 8443:8443 -p 8080:8080 --name my-haproxy haproxy`
- visit http://localhost:8080/stats to verify your HAProxy up and running
haproxy.cfg
Dockerfile
aai.pem
< server aai-resources.api.simpledemo.openecomp.org aai-resources.api.simpledemo.openecomp.org:8447 port 8447 ssl verify none
=============================================
> server host.docker.internal host.docker.internal:8447 port 8447 ssl verify none
Related articles
https://hub.docker.com/_/haproxy
-
Page:
-
Page:
-
Page:
-
Page:
-
Page: