tv nginx: expose /etc/os-release
This commit is contained in:
parent
54129c440e
commit
7a5c9631f7
|
@ -12,7 +12,7 @@ with config.krebs.lib;
|
|||
../2configs/git.nix
|
||||
../2configs/im.nix
|
||||
../2configs/mail-client.nix
|
||||
../2configs/nginx-public_html.nix
|
||||
../2configs/nginx/public_html.nix
|
||||
../2configs/pulse.nix
|
||||
../2configs/retiolum.nix
|
||||
../2configs/wu-binary-cache/client.nix
|
||||
|
|
|
@ -13,7 +13,7 @@ with config.krebs.lib;
|
|||
../2configs/im.nix
|
||||
../2configs/mail-client.nix
|
||||
../2configs/man.nix
|
||||
../2configs/nginx-public_html.nix
|
||||
../2configs/nginx/public_html.nix
|
||||
../2configs/pulse.nix
|
||||
../2configs/retiolum.nix
|
||||
../2configs/wu-binary-cache
|
||||
|
|
|
@ -12,7 +12,7 @@ with config.krebs.lib;
|
|||
../2configs/git.nix
|
||||
../2configs/mail-client.nix
|
||||
../2configs/man.nix
|
||||
../2configs/nginx-public_html.nix
|
||||
../2configs/nginx/public_html.nix
|
||||
../2configs/pulse.nix
|
||||
../2configs/retiolum.nix
|
||||
../2configs/wu-binary-cache/client.nix
|
||||
|
|
|
@ -26,6 +26,7 @@ with config.krebs.lib;
|
|||
imports = [
|
||||
<secrets>
|
||||
./backup.nix
|
||||
./nginx
|
||||
./vim.nix
|
||||
{
|
||||
# stockholm dependencies
|
||||
|
|
17
tv/2configs/nginx/default.nix
Normal file
17
tv/2configs/nginx/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with config.krebs.lib;
|
||||
|
||||
{
|
||||
krebs.nginx = {
|
||||
servers.default.locations = [
|
||||
(nameValuePair "= /etc/os-release" ''
|
||||
default_type text/plain;
|
||||
alias /etc/os-release;
|
||||
'')
|
||||
];
|
||||
};
|
||||
tv.iptables = optionalAttrs config.krebs.nginx.enable {
|
||||
input-retiolum-accept-new-tcp = singleton "http";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue