feat: properly handle dhparam
The dhparam file should be specific to each installation, and thus needs to be generated on first run.
This commit is contained in:
1 parent
6fe984fd3c
commit
9b67ffe9d4
3 files changed
+13
No files matched your search
@@ -42,6 +42,15 @@ main() {
|
||||
echo "dokku dokku/vhost_enable boolean true" | debconf-set-selections
|
||||
dokku --quiet domains:set-global "$DOKKU_HOSTNAME"
|
||||
fi
|
||||
|
||||
if [[ ! -f /mount/etc/nginx/dhparam.pem ]]; then
|
||||
mkdir -p /mount/etc/nginx
|
||||
openssl dhparam -out /mount/etc/nginx/dhparam.pem 2048
|
||||
fi
|
||||
|
||||
cp -f /mount/etc/nginx/dhparam.pem /etc/nginx/dhparam.pem
|
||||
chown root:root /etc/nginx/dhparam.pem
|
||||
chown root:root /etc/nginx/conf.d
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in new issue
Block a user