Merge remote-tracking branch 'ni/master'
This commit is contained in:
commit
7083200810
@ -38,6 +38,7 @@ in {
|
||||
io 60 IN NS ions.lassul.us.
|
||||
ions 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
lol 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
p 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
paste 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
radio 60 IN A ${config.krebs.hosts.prism.nets.internet.ip4.addr}
|
||||
'';
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ curl, writeDashBin }:
|
||||
{ curl, gnused, writeDashBin }:
|
||||
|
||||
writeDashBin "kpaste" ''
|
||||
exec ${curl}/bin/curl -sS http://p.r --data-binary @-
|
||||
${curl}/bin/curl -sS http://p.r --data-binary @- |
|
||||
${gnused}/bin/sed '$ {p;s/\<r\>/krebsco.de/}'
|
||||
''
|
||||
|
@ -10,6 +10,16 @@ with import <stockholm/lib>;
|
||||
proxy_pass http://localhost:9081;
|
||||
'';
|
||||
};
|
||||
services.nginx.virtualHosts.paste-readonly = {
|
||||
serverAliases = [ "p.krebsco.de" ];
|
||||
locations."/".extraConfig = ''
|
||||
if ($request_method != GET) {
|
||||
return 403;
|
||||
}
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://localhost:9081;
|
||||
'';
|
||||
};
|
||||
krebs.htgen.paste = {
|
||||
port = 9081;
|
||||
script = toString [
|
||||
|
Loading…
Reference in New Issue
Block a user