[add] added 403 catchall for invalid domains
This commit is contained in:
@@ -40,6 +40,26 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
# catch all non domains
|
||||
server {
|
||||
listen 8443 ssl;
|
||||
|
||||
# prevent redirecting to 8080 port
|
||||
# (e.g. when trailing slash is missed)
|
||||
port_in_redirect off;
|
||||
|
||||
server_name "";
|
||||
|
||||
ssl_certificate /service/ssl/nixdomain/fullchain.pem;
|
||||
ssl_certificate_key /service/ssl/nixdomain/privkey.pem;
|
||||
|
||||
location / {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# the following variable is automatically populated via entrypoint.sh
|
||||
#<SERVER>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user