diff options
author | lassulus <lassulus@lassul.us> | 2021-08-26 09:58:42 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-08-26 09:58:42 +0200 |
commit | 6db453c84d00b515abb36a784b0ba1f1e75011e0 (patch) | |
tree | e56581ed9069d87d1b633f46d6642bb0e74eb14b /lass/2configs/paste.nix | |
parent | 33714185ea1331c2fb82a831eaa9900076028c2a (diff) |
l paste: add c.krebsco.de
Diffstat (limited to 'lass/2configs/paste.nix')
-rw-r--r-- | lass/2configs/paste.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lass/2configs/paste.nix b/lass/2configs/paste.nix index 98ba7c731..68a55c71c 100644 --- a/lass/2configs/paste.nix +++ b/lass/2configs/paste.nix @@ -36,6 +36,22 @@ with import <stockholm/lib>; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; ''; }; + services.nginx.virtualHosts."c.krebsco.de" = { + enableACME = true; + addSSL = true; + serverAliases = [ "c.krebsco.de" ]; + locations."/".extraConfig = '' + if ($request_method != GET) { + return 403; + } + proxy_set_header Host $host; + proxy_pass http://127.0.0.1:${toString config.krebs.htgen.cyberlocker.port}; + ''; + extraConfig = '' + add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + ''; + }; services.nginx.virtualHosts."p.krebsco.de" = { enableACME = true; addSSL = true; |