Browse Source

rt: fix API security problem

master
Sebastien Bourdeauducq 2 months ago
parent
commit
d9536ff5db
  1. 18
      nixbld-etc-nixos/configuration.nix

18
nixbld-etc-nixos/configuration.nix

@ -689,10 +689,20 @@ in
"rt.m-labs.hk" = {
forceSSL = true;
useACMEHost = "nixbld.m-labs.hk";
locations."/".proxyPass = "http://127.0.0.1:4201";
extraConfig = ''
client_max_body_size 100M;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:4201";
extraConfig = ''
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" = {
addSSL = true;

Loading…
Cancel
Save