Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. $docker ps
  2. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  3. 48889effb2fb uchiwa/uchiwa "/go/bin/uchiwa -c /c" About an hour ago Up About an hour 127.0.0.1:3002->3000/tcp uchiwa
  4.  
  5. $ telnet 127.0.0.1 3002
  6. Trying 127.0.0.1...
  7. Connected to 127.0.0.1.
  8.  
  9. global
  10. log /dev/log local0
  11. log /dev/log local1 notice
  12. debug
  13. chroot /var/lib/haproxy
  14. stats socket /run/haproxy/admin.sock mode 660 level admin
  15. stats timeout 30s
  16. user haproxy
  17. group haproxy
  18. daemon
  19. maxconn 500
  20. tune.ssl.default-dh-param 2048
  21.  
  22. # Default SSL material locations
  23. ca-base /etc/ssl/certs
  24. crt-base /etc/ssl/private
  25.  
  26. # Default ciphers to use on SSL-enabled listening sockets.
  27. # For more information, see ciphers(1SSL). This list is from:
  28. # https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
  29. ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
  30. ssl-default-bind-options no-sslv3
  31.  
  32. defaults
  33. log global
  34. mode http
  35. option forwardfor
  36. option httplog
  37. option dontlognull
  38. timeout connect 5000
  39. timeout client 50000
  40. timeout server 50000
  41. errorfile 400 /etc/haproxy/errors/400.http
  42. errorfile 403 /etc/haproxy/errors/403.http
  43. errorfile 408 /etc/haproxy/errors/408.http
  44. errorfile 500 /etc/haproxy/errors/500.http
  45. errorfile 502 /etc/haproxy/errors/502.http
  46. errorfile 503 /etc/haproxy/errors/503.http
  47. errorfile 504 /etc/haproxy/errors/504.http
  48. frontend www-http
  49. bind :80
  50. reqadd X-Forwarded-Proto: http
  51. acl uchiwa path_beg /sensu
  52. use_backend uchiwa-backend if uchiwa
  53. frontend www-https
  54. bind :443 ssl crt /etc/haproxy/certs/example.com.pem
  55. reqadd X-Forwarded-Proto: https
  56. acl uchiwa path_beg /sensu
  57. acl letsencrypt-acl path_beg /.well-known/acme-challenge/
  58. use_backend uchiwa-backend if uchiwa
  59. use_backend letsencrypt-backend if letsencrypt-acl
  60. backend uchiwa-backend
  61. redirect scheme https if !{ ssl_fc }
  62. server 127.0.0.1:3002 check
  63. backend letsencrypt-backend
  64. server letsencrypt 127.0.0.1:54321
  65.  
  66. Jul 24 16:54:56 <hostmachine> haproxy[18640]: Proxy www-http started.
  67. Jul 24 16:54:56 <hostmachine> haproxy[18640]: Proxy www-http started.
  68. Jul 24 16:54:56 <hostmachine> haproxy[18640]: Proxy www-https started.
  69. Jul 24 16:54:56 <hostmachine> haproxy[18640]: Proxy www-https started.
  70. Jul 24 16:54:56 <hostmachine> haproxy[18640]: Proxy uchiwa-backend started.
  71. Jul 24 16:54:56 <hostmachine> haproxy[18640]: Proxy uchiwa-backend started.
  72. Jul 24 16:54:56 <hostmachine> haproxy[18640]: Proxy letsencrypt-backend started.
  73. (nothing after this line...)
  74.  
  75. backend uchiwa-backend
  76. option forceclose
  77. redirect scheme https if !{ ssl_fc }
  78. server uchiwa 172.17.0.6:3000
  79.  
  80. Aug 7 03:38:41 <hostmachine> haproxy[723]: 192.168.1.1:57720 [07/Aug/2016:03:38:41.957] www-https~ uchiwa-backend/uchiwa 4/0/0/0/5 404 195 - - ---- 0/0/0/0/0 0/0 "GET /sensu HTTP/1.1"
  81. Aug 7 03:38:42 <hostmachine> haproxy[723]: 192.168.1.1:57721 [07/Aug/2016:03:38:42.293] www-https~ www-https/<NOSRV> -1/-1/-1/-1/3 503 213 - - SC-- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
  82.  
  83. server 127.0.0.1:3002 check
  84.  
  85. server uchiwa 127.0.0.1:3002 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement