tv nginx: return 404 by default
This commit is contained in:
parent
eafa36c2b1
commit
7efec736b2
@ -4,6 +4,13 @@ with import <stockholm/lib>;
|
|||||||
|
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
virtualHosts._http = {
|
||||||
|
default = true;
|
||||||
|
extraConfig = ''
|
||||||
|
return 404;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
virtualHosts.default = {
|
virtualHosts.default = {
|
||||||
locations."= /etc/os-release".extraConfig = ''
|
locations."= /etc/os-release".extraConfig = ''
|
||||||
default_type text/plain;
|
default_type text/plain;
|
||||||
|
Loading…
Reference in New Issue
Block a user