forked from M-Labs/it-infra
rt: fix API security problem
This commit is contained in:
parent
a385c2db4b
commit
d9536ff5db
|
@ -689,11 +689,21 @@ in
|
||||||
"rt.m-labs.hk" = {
|
"rt.m-labs.hk" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
useACMEHost = "nixbld.m-labs.hk";
|
||||||
locations."/".proxyPass = "http://127.0.0.1:4201";
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:4201";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
locations."/REST/1.0/NoAuth" = {
|
||||||
|
proxyPass = "http://127.0.0.1:4201";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 100M;
|
||||||
|
allow 127.0.0.1;
|
||||||
|
deny all;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
"nmigen.org" = {
|
"nmigen.org" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
useACMEHost = "nixbld.m-labs.hk";
|
useACMEHost = "nixbld.m-labs.hk";
|
||||||
|
|
Loading…
Reference in New Issue