mirror of
https://github.com/dokku/dokku.git
synced 2026-05-18 05:05:46 +02:00
The shipped catch-all default site uses `ssl_reject_handshake`, which is unsupported on nginx older than 1.19.4 and causes nginx to fail to start on Debian Bullseye. The postinst now detects the installed nginx version and installs an HTTP-only variant of the catch-all on older systems.
14 lines
398 B
Plaintext
14 lines
398 B
Plaintext
# Catch-all server block for requests with unknown Host headers.
|
|
# Installed on fresh apt installs of dokku when nginx < 1.19.4
|
|
# (which lacks ssl_reject_handshake support); safe to edit.
|
|
# See /etc/nginx/conf.d/dokku.conf for the per-app server blocks.
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
server_name _;
|
|
access_log off;
|
|
|
|
return 444;
|
|
}
|