From 34704b2090c48d9ab9e7458475fd701a38706ae7 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 22 Feb 2025 18:11:35 +0800 Subject: feat(services): refactor structure. --- services/templates/nginx/conf.d/forbid_unknown_domain.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 services/templates/nginx/conf.d/forbid_unknown_domain.conf (limited to 'services/templates/nginx/conf.d/forbid_unknown_domain.conf') diff --git a/services/templates/nginx/conf.d/forbid_unknown_domain.conf b/services/templates/nginx/conf.d/forbid_unknown_domain.conf new file mode 100644 index 0000000..515942b --- /dev/null +++ b/services/templates/nginx/conf.d/forbid_unknown_domain.conf @@ -0,0 +1,9 @@ +server { + listen 80 default_server; + listen [::]:80 default_server; + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + http2 on; + + return 444; +} -- cgit v1.2.3