Fixes for haproxy and varnish

This commit is contained in:
Alex D. 2020-10-31 16:55:26 +01:00
parent f6e4636605
commit 3239986905
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
6 changed files with 11 additions and 10 deletions

View File

@ -19,4 +19,4 @@ package() {
install -Dm644 config "$pkgdir"/var/lib/lxc/haproxy/config install -Dm644 config "$pkgdir"/var/lib/lxc/haproxy/config
} }
sha512sums="08ed912da89e439fd4194af2f74b150272c8ce00a98b3906e09d020d022870b431ba4e0613061c2f960c0fa50ecde33daf7d3277d9f1aadbfa7670e4d6c4a08f config" sha512sums="9f4137aca385dbb62370babfa9a50ca82cd4a27453a6939d3f5236150ef8d18f09817ff008ddd21afc247cb0337b3e5415b499f0a384df286de03e3fd5d51725 config"

View File

@ -19,4 +19,4 @@ package() {
install -Dm644 config "$pkgdir"/var/lib/lxc/varnish/config install -Dm644 config "$pkgdir"/var/lib/lxc/varnish/config
} }
sha512sums="f104312ae8f546b05aa090a0928211f2329fc5691bc42eab1b55a28a2228987c0c8377eb2f4868fd90b662add9e54e02a7e4b5f0771dc37d27b99e07a5376fdb config" sha512sums="6bfa0290eba1925b4f6635c1ee2d8eda3b18a0fdc286bbecd86ea98dbc7480125ae0026ecbc2c73c3d074abcf7b6143f3337be121e8160054624d304c17281ed config"

View File

@ -1,6 +1,6 @@
lxc.net.0.type = none lxc.net.0.type = none
lxc.rootfs.path = dir:/containers/varnish lxc.rootfs.path = dir:/containers/varnish
lxc.init.cmd = /usr/sbin/varnishd -F -a localhost:7102,PROXY -p default_ttl=300 -p default_grace=240 -p default_keep=120 -p feature=+http2 -p tcp_fastopen=on -p nuke_limit=0 -f /etc/varnish/main.vcl lxc.init.cmd = /usr/sbin/varnishd -F -a :7102,PROXY -p default_ttl=300 -p default_grace=240 -p default_keep=120 -p feature=+http2 -p tcp_fastopen=on -p nuke_limit=0 -f /etc/varnish/main.vcl
lxc.signal.halt = SIGTERM lxc.signal.halt = SIGTERM
lxc.signal.reboot = SIGTERM lxc.signal.reboot = SIGTERM
lxc.tty.max = 1 lxc.tty.max = 1

View File

@ -20,4 +20,4 @@ package() {
} }
sha512sums="0fc54fbc598b49d7d21cd536a96f0995b2abca1fe12fe13ca6d8b5d944de2ebcfba18a652633fd02b902b8c2621ed3cea001b6ef5555d68d6250dba23496741f main.conf" sha512sums="b830c09953bd4908fd9d69c5e386b0f314b87d44bf2c19dcfa2bb5f790a842d617888e4c47802eaab8bea676bd1d060bae47965ac0946bbb9b5dc95ca990d01d main.conf"

View File

@ -16,4 +16,4 @@ package() {
} }
sha512sums="fda9cd828b8ebbfda54145d3a02ea5272c448220906a3f92ac40538561c6153f3fdf1eea3971c8da91a1b3fbdbaf63c55e0141a6016ade2bb7565c4ccf6c37c4 main.vcl" sha512sums="9347cd8ba1f420397661aa5388cd29ee9ab8a5c170355b49dbff8878234c6c160ef5229a57eaaaeae880b4ddb7b0f17da557e53c082fbabb09c0e2048e0be045 main.vcl"

View File

@ -2,7 +2,8 @@ vcl 4.1;
import std; import std;
backend default { backend default {
.path = "127.0.0.1:7204"; .host = "haproxy.routinginfo.redxen.localhost";
.port = "7202";
.max_connections = 300; .max_connections = 300;
.first_byte_timeout = 240s; .first_byte_timeout = 240s;
.connect_timeout = 10s; .connect_timeout = 10s;