add dockerfile and scripts
This commit is contained in:
11
docker/scripts/3-update-haproxy-cert.sh
Normal file
11
docker/scripts/3-update-haproxy-cert.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Start transaction
|
||||
echo -e "set ssl cert /usr/local/etc/haproxy/certificates/site.pem <<\n$(cat /etc/certificates/site.pem)\n" | socat tcp-connect:haproxy:9999 -
|
||||
|
||||
# Commit transaction
|
||||
echo "commit ssl cert /usr/local/etc/haproxy/certificates/site.pem" | socat tcp-connect:haproxy:9999 -
|
||||
|
||||
# Show certification info (not essential)
|
||||
echo "show ssl cert /usr/local/etc/haproxy/certificates/site.pem" | socat tcp-connect:haproxy:9999 -
|
||||
|
||||
Reference in New Issue
Block a user