# catch-all nginx server

server {
	listen [::]:80 default_server;
	listen 80 default_server;

	server_name _;
	return 444;
}

server {
	listen [::]:443 default_server;
	listen 443 default_server;

	# intentionally cause an SSL error. this requires a snakeoil certificate, see:
	# https://docs.j7k6.org/nginx-default-ssl-site/
	ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
	ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
	ssl_reject_handshake on;
	include snippets/ssl-params.conf;

	server_name _;
	return 444;
}
