Guest User

Untitled

a guest
Nov 29th, 2018
557
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Automatically generated configuration.
  3. # Do not edit this file manually.
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. global
  12. # NOTE: Could be a security issue, but required for some feature.
  13. uid 80
  14. gid 80
  15. chroot /var/haproxy
  16. daemon
  17. stats socket /var/run/haproxy.socket level admin
  18. nbproc 1
  19. nbthread 1
  20. tune.ssl.default-dh-param 1024
  21. spread-checks 0
  22. tune.chksize 16384
  23. tune.bufsize 16384
  24. tune.lua.maxmem 0
  25. log /var/run/log local0 info
  26.  
  27.  
  28. defaults
  29. log global
  30. option redispatch -1
  31. timeout client 30s
  32. timeout connect 30s
  33. timeout server 30s
  34. retries 3
  35.  
  36.  
  37. # autogenerated entries for ACLs
  38.  
  39. # autogenerated entries for config in backends/frontends
  40. userlist list_5bffb103af1398.39436309
  41. # Origin: Backend_lxmonitor_prometheus
  42. user simonszu insecure-password c8d6d34qcxy
  43. # WARNING: UserlistAddUsers called with empty group data
  44.  
  45.  
  46. # autogenerated entries for stats
  47.  
  48.  
  49. # Frontend: Frontend_HTTPS (Web Service Frontend)
  50. frontend Frontend_HTTPS
  51. bind 148.251.84.126:443 name 148.251.84.126:443 ssl crt-list /tmp/haproxy/ssl/5bff9e37369278.51072792.certlist
  52. mode http
  53. option http-keep-alive
  54. # tuning options
  55. timeout client 30s
  56.  
  57. # logging options
  58. # ACL: Condition_lxweb_web
  59. acl acl_5bff9cda750e32.87453973 hdr_reg(host) -i ^(?!(matrix)|(znc)|(prometheus)).*simonszu.de$
  60. # ACTION: Rule_lxweb_web
  61. use_backend Backend_lxweb_web if acl_5bff9cda750e32.87453973
  62. # ACL: Condition_lxmonitor_prometheus
  63. acl acl_5bffb1540369c5.32960733 hdr(host) -i prometheus.simonszu.de
  64. # ACTION: Rule_lxmonitor_prometheus
  65. use_backend Backend_lxmonitor_prometheus if acl_5bffb1540369c5.32960733
  66. # ACL: Condition_lxchat_znc
  67. acl acl_5bffb2a280bb17.94966369 hdr(host) -i znc.simonszu.de
  68. # ACTION: Rule_lxchat_znc_web
  69. use_backend Backend_lxchat_znc_web if acl_5bffb2a280bb17.94966369
  70.  
  71. # Frontend: Frontend_HTTP (Web Service Frontend)
  72. frontend Frontend_HTTP
  73. bind 148.251.84.126:80 name 148.251.84.126:80
  74. mode http
  75. option http-keep-alive
  76. # tuning options
  77. timeout client 30s
  78.  
  79. # logging options
  80. # ACL: Condition_NoSSL
  81. acl acl_5bffa2835dcdc1.20921727 ssl_fc
  82. # ACTION: Rule_HTTPS_redirect
  83. http-request redirect scheme https code 301 if !acl_5bffa2835dcdc1.20921727
  84.  
  85. # Frontend: Frontend_git_SSH (git SSH Frontend)
  86. frontend Frontend_git_SSH
  87. bind 148.251.84.126:222 name 148.251.84.126:222
  88. mode tcp
  89. # tuning options
  90. timeout client 30s
  91.  
  92. # logging options
  93. # ACL: Condition_lxweb_git
  94. acl acl_5bffb45049af03.80139164 hdr_reg(host) -i .*
  95. # ACTION: Rule_lxweb_git
  96. use_backend Backend_lxweb_git if acl_5bffb45049af03.80139164
  97.  
  98. # Frontend: Frontend_mariadb ()
  99. frontend Frontend_mariadb
  100. bind 148.251.84.126:3306 name 148.251.84.126:3306
  101. mode tcp
  102. # tuning options
  103. timeout client 30s
  104.  
  105. # logging options
  106. # ACL: Condition_lxdb_mariadb
  107. acl acl_5bffbc082c6907.24994033 hdr_beg(host) -i mysql.simonszu.de
  108. # ACTION: Rule_lxdb_mariadb
  109. use_backend Backend_lxdb_mariadb if acl_5bffbc082c6907.24994033
  110.  
  111. # Backend: acme_challenge_backend (Added by Let's Encrypt plugin)
  112. backend acme_challenge_backend
  113. # health checking is DISABLED
  114. mode http
  115. balance source
  116. # stickiness
  117. stick-table type ip size 50k expire 30m
  118. stick on src
  119. # tuning options
  120. timeout connect 30s
  121. timeout server 30s
  122. http-reuse never
  123. server acme_challenge_host 127.0.0.1:43580
  124.  
  125. # Backend: Backend_lxweb_web (Web Server Backend)
  126. backend Backend_lxweb_web
  127. # health check: Health_TCP
  128. mode http
  129. balance source
  130. # stickiness
  131. stick-table type ip size 50k expire 30m
  132. stick on src
  133. # tuning options
  134. timeout connect 30s
  135. timeout server 30s
  136. http-reuse never
  137. server lxweb_web 10.10.10.7:80 check inter 2s
  138.  
  139. # Backend: Backend_lxmonitor_prometheus (Web Server Backend)
  140. backend Backend_lxmonitor_prometheus
  141. # health check: Health_TCP
  142. mode http
  143. balance source
  144. # stickiness
  145. stick-table type ip size 50k expire 30m
  146. stick on src
  147. # tuning options
  148. timeout connect 30s
  149. timeout server 30s
  150. acl auth_ok http_auth(list_5bffb103af1398.39436309)
  151. http-request auth if !auth_ok
  152. http-reuse never
  153. server lxmonitor_prometheus 10.10.10.13:9090 check inter 2s
  154.  
  155. # Backend: Backend_lxchat_znc_web (ZNC Web Frontend Backend)
  156. backend Backend_lxchat_znc_web
  157. # health check: Health_TCP
  158. mode http
  159. balance source
  160. # stickiness
  161. stick-table type ip size 50k expire 30m
  162. stick on src
  163. # tuning options
  164. timeout connect 30s
  165.  
  166. timeout server 30s
  167. http-reuse never
  168. server lxchat_znc_web 10.10.10.8:1337 check inter 2s
  169.  
  170. # Backend: Backend_lxweb_git (Gitea SSH)
  171. backend Backend_lxweb_git
  172. # health check: Health_TCP
  173. mode tcp
  174. balance source
  175. # stickiness
  176. stick-table type ip size 50k expire 30m
  177. stick on src
  178. # tuning options
  179. timeout connect 30s
  180. timeout server 30s
  181. server lxweb_git 10.10.10.7:222 check inter 2s
  182.  
  183. # Backend: Backend_lxdb_mariadb (MariaDB)
  184. backend Backend_lxdb_mariadb
  185. # health check: Health_TCP
  186. mode tcp
  187. balance source
  188. # stickiness
  189. stick-table type ip size 50k expire 30m
  190. stick on src
  191. # tuning options
  192. timeout connect 30s
  193. timeout server 30s
  194. server lxdb_mariadb 10.10.10.5:3306 check inter 2s
  195.  
  196.  
  197.  
  198.  
  199.  
  200. listen local_statistics
  201. bind 127.0.0.1:8822
  202. mode http
  203. stats uri /haproxy?stats
  204. stats realm HAProxy\ statistics
  205. stats admin if TRUE
  206.  
  207. # statistics are DISABLED
RAW Paste Data