l 2 websites lassulus: add /init
This commit is contained in:
parent
0a104ff9df
commit
71b3e39cc5
@ -5,6 +5,7 @@ let
|
|||||||
inherit (import <stockholm/lib>)
|
inherit (import <stockholm/lib>)
|
||||||
genid
|
genid
|
||||||
;
|
;
|
||||||
|
inherit (import ../../4lib { inherit lib; }) initscript;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
@ -83,6 +84,7 @@ in {
|
|||||||
locations."/tinc".extraConfig = ''
|
locations."/tinc".extraConfig = ''
|
||||||
alias ${config.krebs.tinc_graphs.workingDir}/external;
|
alias ${config.krebs.tinc_graphs.workingDir}/external;
|
||||||
'';
|
'';
|
||||||
|
# TODO make this work!
|
||||||
locations."= /ddate".extraConfig = let
|
locations."= /ddate".extraConfig = let
|
||||||
script = pkgs.writeBash "test" ''
|
script = pkgs.writeBash "test" ''
|
||||||
echo "hello world"
|
echo "hello world"
|
||||||
@ -100,6 +102,10 @@ in {
|
|||||||
fastcgi_param SCRIPT_NAME ${script};
|
fastcgi_param SCRIPT_NAME ${script};
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
locations."/init".extraConfig = ''
|
||||||
|
alias ${pkgs.writeText "init" (initscript { pubkey = config.krebs.users.lass.pubkey; })};
|
||||||
|
'';
|
||||||
|
|
||||||
enableSSL = true;
|
enableSSL = true;
|
||||||
extraConfig = "listen 80;";
|
extraConfig = "listen 80;";
|
||||||
sslCertificate = "/var/lib/acme/lassul.us/fullchain.pem";
|
sslCertificate = "/var/lib/acme/lassul.us/fullchain.pem";
|
||||||
|
Loading…
Reference in New Issue
Block a user