This file contains hidden or 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
| # /etc/logrotate.d/cloudflared | |
| /var/log/cloudflared/cloudflared.log { | |
| rotate 7 | |
| daily | |
| compress | |
| missingok | |
| notifempty | |
| } |
This file contains hidden or 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
| # | |
| # Add Google Analytics tracking code to HTML response | |
| # | |
| # Usage: | |
| # set $tracking_id 'UA-12345678-9'; | |
| # include incl/analytics.conf; | |
| # | |
| # It needs nginx compiled with option --with-http_sub_module. | |
| # Uses optimized GA code from: http://mathiasbynens.be/notes/async-analytics-snippet | |
| # |
This file contains hidden or 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
| # Make sure you have these installed | |
| yum install -y make gcc perl pcre-devel zlib-devel | |
| # Download/Extract source | |
| wget -O /tmp/haproxy.tgz http://www.haproxy.org/download/1.7/src/haproxy-1.7.2.tar.gz | |
| tar -zxvf /tmp/haproxy.tgz -C /tmp | |
| cd /tmp/haproxy-* | |
| # Compile HAProxy | |
| # https://github.com/haproxy/haproxy/blob/master/README | |
| make \ | |
| TARGET=linux2628 USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_PCRE=1 USE_PCRE_JIT=1 \ |