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
| sudo journalctl -f -n 1 -b -u volspotconnect2.service | grep --line-buffered "Failed" | while read; do `sudo systemctl restart volspotconnect2`; done |
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
| frontend proxy | |
| bind *:80 | |
| # ACL function declarations | |
| acl is_abuse src_http_req_rate(Abuse) ge 10 | |
| acl inc_abuse_cnt src_inc_gpc0(Abuse) gt 0 | |
| acl abuse_cnt src_get_gpc0(Abuse) gt 0 | |
| # Rules | |
| tcp-request connection track-sc0 src table Abuse |
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
| backend Abuse | |
| stick-table type ip size 100K expire 30m store gpc0,http_req_rate(10s) |
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
| defaults | |
| mode http | |
| timeout connect 5000ms | |
| timeout client 50000ms | |
| timeout server 50000ms | |
| frontend proxy | |
| bind *:80 | |
| # ACL function declarations |
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
| FROM haproxy:1.7 | |
| COPY haproxy-ratelimiter.cfg /usr/local/etc/haproxy/haproxy.cfg |
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
| api01_1 | 192.168.192.3 - - [08/Jan/2019:11:38:09 +0000] "GET / HTTP/1.1" 200 45 | |
| api02_1 | 192.168.192.3 - - [08/Jan/2019:11:38:10 +0000] "GET / HTTP/1.1" 304 - | |
| api01_1 | 192.168.192.3 - - [08/Jan/2019:11:38:10 +0000] "GET / HTTP/1.1" 304 - | |
| api02_1 | 192.168.192.3 - - [08/Jan/2019:11:38:11 +0000] "GET / HTTP/1.1" 304 - | |
| api01_1 | 192.168.192.3 - - [08/Jan/2019:11:38:11 +0000] "GET / HTTP/1.1" 304 - | |
| api02_1 | 192.168.192.3 - - [08/Jan/2019:11:38:11 +0000] "GET / HTTP/1.1" 304 - |
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
| defaults | |
| mode http | |
| timeout connect 5000ms | |
| timeout client 50000ms | |
| timeout server 50000ms | |
| frontend proxy | |
| bind *:80 | |
| use_backend api |
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
| $ git clone git@github.com:stargazer/django-docker.git | |
| $ cd django-docker |
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
| root@29abfc7bb280:/src# ./manage.py runserver 0.0.0.0:8080 |
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
| root@29abfc7bb280:/src# ./manage.py migrate | |
| root@29abfc7bb280:/src# ./manage.py createsuperuser |
NewerOlder