[nginx] Add RC and config

This commit is contained in:
Vincent Ambo 2016-03-01 01:11:36 +01:00
parent 4bf511ba13
commit a2c95a740d
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
5 changed files with 135 additions and 0 deletions

14
nginx/generate-dhparam Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
readonly dhparam=$(openssl dhparam 2048 | base64 -w0)
echo "Inserting new DH parameter ..."
kubectl replace --force -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
name: nginx-dhparam
data:
tls.dhparam: ${dhparam}
EOF