l p.krebsco.de: allow upload from internet

This commit is contained in:
lassulus 2022-05-29 20:00:50 +02:00
parent 6bf2ab8735
commit 0c30d6f120

View File

@ -57,10 +57,8 @@ with import <stockholm/lib>;
addSSL = true; addSSL = true;
serverAliases = [ "p.krebsco.de" ]; serverAliases = [ "p.krebsco.de" ];
locations."/".extraConfig = '' locations."/".extraConfig = ''
if ($request_method != GET) {
return 403;
}
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:${toString config.krebs.htgen.paste.port}; proxy_pass http://127.0.0.1:${toString config.krebs.htgen.paste.port};
''; '';
locations."/image".extraConfig = '' locations."/image".extraConfig = ''