Last active
October 13, 2021 17:37
Revisions
-
kehers revised this gist
Sep 7, 2015 . 1 changed file with 56 additions and 41 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 charactersOriginal file line number Diff line number Diff line change @@ -1,51 +1,66 @@ global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /run/haproxy/admin.sock mode 660 level admin stats timeout 30s user haproxy group haproxy daemon # Default SSL material locations ca-base /etc/ssl/certs crt-base /var/www/ssl/ # https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ 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 ssl-default-bind-options no-sslv3 tune.ssl.default-dh-param 2048 defaults log global mode http option httplog option dontlognull timeout connect 5000 timeout client 50000 timeout server 50000 errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http errorfile 500 /etc/haproxy/errors/500.http errorfile 502 /etc/haproxy/errors/502.http errorfile 503 /etc/haproxy/errors/503.http errorfile 504 /etc/haproxy/errors/504.http frontend http-in bind :80 reqadd X-Forwarded-Proto:\ http default_backend app # is this a socket io request? acl is_websocket path_beg /socket.io acl is_websocket hdr(Upgrade) -i WebSocket AND hdr_beg(Host) -i ws use_backend websocket if is_websocket frontend https-in bind :443 ssl crt /etc/ssl/private/crt.pem reqadd X-Forwarded-Proto:\ https default_backend app backend app server node 127.0.0.1:3000 check backend websocket balance source option forwardfor no option httpclose option http-server-close option forceclose timeout queue 5s timeout server 24h timeout connect 24h server node1 localhost:3000 check -
kehers revised this gist
Sep 7, 2015 . 1 changed file with 3 additions and 0 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 charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,9 @@ defaults errorfile 502 /etc/haproxy/errors/502.http errorfile 503 /etc/haproxy/errors/503.http errorfile 504 /etc/haproxy/errors/504.http stats enable stats auth someuser:somepassword stats uri /haproxyStats frontend http-in bind :80 -
kehers revised this gist
Sep 4, 2015 . 1 changed file with 17 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 charactersOriginal file line number Diff line number Diff line change @@ -29,5 +29,20 @@ frontend http-in bind :80 default_backend app # is this a socket io request? acl is_websocket path_beg /socket.io acl is_websocket hdr(Upgrade) -i WebSocket AND hdr_beg(Host) -i ws use_backend websocket if is_websocket backend websocket balance source option forwardfor no option httpclose option http-server-close option forceclose timeout queue 5s timeout server 24h timeout connect 24h server node1 localhost:3000 check -
kehers revised this gist
Jul 17, 2015 . No changes.There are no files selected for viewing
-
kehers created this gist
Jul 17, 2015 .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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy user haproxy group haproxy daemon defaults log global mode http option httplog option dontlognull contimeout 5000 clitimeout 50000 srvtimeout 50000 errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http errorfile 500 /etc/haproxy/errors/500.http errorfile 502 /etc/haproxy/errors/502.http errorfile 503 /etc/haproxy/errors/503.http errorfile 504 /etc/haproxy/errors/504.http frontend http-in bind :80 default_backend app backend app server node 127.0.0.1:3000 check