l radio: import htgen script
This commit is contained in:
parent
ea59935e5f
commit
348d5e476f
@ -275,7 +275,7 @@ in {
|
|||||||
user = {
|
user = {
|
||||||
name = "radio";
|
name = "radio";
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''. ${pkgs.writeDash "radio" ''
|
||||||
case "$Method $Request_URI" in
|
case "$Method $Request_URI" in
|
||||||
"GET /current")
|
"GET /current")
|
||||||
printf 'HTTP/1.1 200 OK\r\n'
|
printf 'HTTP/1.1 200 OK\r\n'
|
||||||
@ -303,7 +303,7 @@ in {
|
|||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
''}'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
Loading…
Reference in New Issue
Block a user