summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-04-13 21:41:58 +0200
committertv <tv@krebsco.de>2019-04-13 21:51:58 +0200
commita224e77dfbb8dc88119891c492651458cfacd39a (patch)
tree12a4774bce02f2abe57cf80dcfa47516f623d55f /lass
parent0430fbbbfeef5f7d6188ec70d7f084ffa1cb1a46 (diff)
lass paste: add p.krebsco.de
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/paste.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/lass/2configs/paste.nix b/lass/2configs/paste.nix
index 293691c0f..3c3d8e636 100644
--- a/lass/2configs/paste.nix
+++ b/lass/2configs/paste.nix
@@ -10,6 +10,16 @@ with import <stockholm/lib>;
proxy_pass http://localhost:9081;
'';
};
+ services.nginx.virtualHosts.paste-readonly = {
+ serverAliases = [ "p.krebsco.de" ];
+ locations."/".extraConfig = ''
+ if ($request_method != GET) {
+ return 403;
+ }
+ proxy_set_header Host $host;
+ proxy_pass http://localhost:9081;
+ '';
+ };
krebs.htgen.paste = {
port = 9081;
script = toString [