aboutsummaryrefslogtreecommitdiff
path: root/tlsproxy
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-10-16 15:37:54 +0200
committerGitea <gitea@fake.local>2022-10-16 14:17:12 +0000
commita69a71ca00591b637224cd879d26260a607b6957 (patch)
tree7e52093cb60b797b769acf8b55c0ced6ea6e1efb /tlsproxy
parent554c20cc0408e581b1b23e484609b172030c8259 (diff)
downloadnixcfg-a69a71ca00591b637224cd879d26260a607b6957.tar.gz
nixcfg-a69a71ca00591b637224cd879d26260a607b6957.zip
Add mounts on bespin + tlsproxy
Diffstat (limited to 'tlsproxy')
-rwxr-xr-xtlsproxy4
1 files changed, 2 insertions, 2 deletions
diff --git a/tlsproxy b/tlsproxy
index 7988737..1ddeafa 100755
--- a/tlsproxy
+++ b/tlsproxy
@@ -37,10 +37,10 @@ pass $PREFIX/consul$YEAR.crt > $CERTDIR/consul.crt
pass $PREFIX/consul$YEAR-client.crt > $CERTDIR/consul-client.crt
pass $PREFIX/consul$YEAR-client.key > $CERTDIR/consul-client.key
-socat -dd tcp4-listen:4646,reuseaddr,fork openssl:localhost:14646,cert=$CERTDIR/nomad-client.crt,key=$CERTDIR/nomad-client.key,cafile=$CERTDIR/nomad.crt,verify=0 &
+socat -dd tcp-listen:4646,reuseaddr,fork,bind=localhost openssl:localhost:14646,cert=$CERTDIR/nomad-client.crt,key=$CERTDIR/nomad-client.key,cafile=$CERTDIR/nomad.crt,verify=0 &
child1=$!
-socat -dd tcp4-listen:8500,reuseaddr,fork openssl:localhost:8501,cert=$CERTDIR/consul-client.crt,key=$CERTDIR/consul-client.key,cafile=$CERTDIR/consul.crt,verify=0 &
+socat -dd tcp-listen:8500,reuseaddr,fork,bind=localhost openssl:localhost:8501,cert=$CERTDIR/consul-client.crt,key=$CERTDIR/consul-client.key,cafile=$CERTDIR/consul.crt,verify=0 &
child2=$!
wait "$child1"