feat: ship default catch-all site on fresh apt install
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.
This commit is contained in:
7 files changed
+246
-32
No files matched your search
Vendored
+5
@@ -22,3 +22,8 @@ Template: dokku/nginx_enable
|
||||
Description: Enable nginx-vhosts plugin?
|
||||
Type: boolean
|
||||
Default: true
|
||||
|
||||
Template: dokku/install_default_site
|
||||
Description: Install a catch-all nginx default site on fresh install?
|
||||
Type: boolean
|
||||
Default: true
|
||||
Reference in new issue
Block a user