summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-17 16:24:36 +0100
committerlassulus <lass@lassul.us>2017-01-17 16:24:36 +0100
commit71b3e39cc51895870149f6b616b77deb27ec8ffd (patch)
tree3e180d66c76f40a58ecbf7090960e7dfd920b45c /lass
parent0a104ff9df7ea99ba2dbfc5d739df1439e6ee64b (diff)
l 2 websites lassulus: add /init
Diffstat (limited to 'lass')
-rw-r--r--lass/2configs/websites/lassulus.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lass/2configs/websites/lassulus.nix b/lass/2configs/websites/lassulus.nix
index cfdda05db..ea384195b 100644
--- a/lass/2configs/websites/lassulus.nix
+++ b/lass/2configs/websites/lassulus.nix
@@ -5,6 +5,7 @@ let
inherit (import <stockholm/lib>)
genid
;
+ inherit (import ../../4lib { inherit lib; }) initscript;
in {
imports = [
@@ -83,6 +84,7 @@ in {
locations."/tinc".extraConfig = ''
alias ${config.krebs.tinc_graphs.workingDir}/external;
'';
+ # TODO make this work!
locations."= /ddate".extraConfig = let
script = pkgs.writeBash "test" ''
echo "hello world"
@@ -100,6 +102,10 @@ in {
fastcgi_param SCRIPT_NAME ${script};
'';
+ locations."/init".extraConfig = ''
+ alias ${pkgs.writeText "init" (initscript { pubkey = config.krebs.users.lass.pubkey; })};
+ '';
+
enableSSL = true;
extraConfig = "listen 80;";
sslCertificate = "/var/lib/acme/lassul.us/fullchain.pem";