mirror of
https://github.com/dokku/dokku.git
synced 2026-05-18 05:05:46 +02:00
Fresh apt installs now drop a catch-all server block at `/etc/nginx/conf.d/00-default-vhost.conf` that uses `ssl_reject_handshake on` and `return 444` to drop requests with unknown Host headers. Conflicting upstream nginx default vhosts are renamed to `*.dokku-disabled` rather than deleted, preserving any local edits. The new `dokku/install_default_site` debconf flag opts out of the install. Upgrades leave existing nginx config untouched.
20 lines
489 B
Bash
Executable File
20 lines
489 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
[[ $TRACE ]] && set -x
|
|
|
|
if [[ -e /usr/share/debconf/confmodule ]]; then
|
|
. /usr/share/debconf/confmodule
|
|
fi
|
|
|
|
readonly ACTION="${1:-configure}"
|
|
readonly VERSION="${2:-dev}"
|
|
|
|
db_input "high" "dokku/nginx_enable" || true
|
|
db_input "high" "dokku/hostname" || true
|
|
db_input "high" "dokku/vhost_enable" || true
|
|
if [ "$ACTION" != "reconfigure" ]; then
|
|
db_input "high" "dokku/key_file" || true
|
|
db_input "high" "dokku/install_default_site" || true
|
|
fi
|
|
db_go || true
|