https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
36 lines
564 B
JSON
36 lines
564 B
JSON
{
|
|
"ip_allow": [
|
|
{
|
|
"apply": "in",
|
|
"ip_addrs": "127.0.0.1",
|
|
"action": "allow",
|
|
"methods": "ALL"
|
|
},
|
|
{
|
|
"apply": "in",
|
|
"ip_addrs": "::1",
|
|
"action": "allow",
|
|
"methods": "ALL"
|
|
},
|
|
{
|
|
"apply": "in",
|
|
"ip_addrs": "0/0",
|
|
"action": "deny",
|
|
"methods": [
|
|
"PURGE",
|
|
"PUSH",
|
|
"DELETE"
|
|
]
|
|
},
|
|
{
|
|
"apply": "in",
|
|
"ip_addrs": "::/0",
|
|
"action": "deny",
|
|
"methods": [
|
|
"PURGE",
|
|
"PUSH",
|
|
"DELETE"
|
|
]
|
|
}
|
|
]
|
|
}
|