mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-13 18:19:00 +00:00
hosts/plover: add default server to reverse proxy
This commit is contained in:
parent
6d9c43bafa
commit
002b65250c
@ -15,6 +15,18 @@
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
# We're avoiding any service to be the default server especially that it
|
||||
# could be used for enter a service with unencrypted HTTP. So we're setting
|
||||
# up one with an unresponsive server response.
|
||||
appendHttpConfig = ''
|
||||
server {
|
||||
listen 0.0.0.0:80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name "";
|
||||
return 418;
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
# Some fail2ban policies to apply for nginx.
|
||||
|
Loading…
Reference in New Issue
Block a user