[nginx] Add RC and config
This commit is contained in:
parent
4bf511ba13
commit
a2c95a740d
5 changed files with 135 additions and 0 deletions
14
nginx/generate-dhparam
Executable file
14
nginx/generate-dhparam
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue