From 911b3c20299b11a3d87ae0a4f1f66626c79e9d1f Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 25 Sep 2019 14:54:55 +0200 Subject: ma shiori: force ssl --- makefu/2configs/gui/base.nix | 3 +-- makefu/2configs/shiori.nix | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'makefu') diff --git a/makefu/2configs/gui/base.nix b/makefu/2configs/gui/base.nix index 9984856be..5b46c7e2d 100644 --- a/makefu/2configs/gui/base.nix +++ b/makefu/2configs/gui/base.nix @@ -11,7 +11,6 @@ # if this is not enough, check out main-laptop.nix -with import ; let mainUser = config.krebs.build.user.name; in @@ -39,7 +38,7 @@ in }; environment.systemPackages = [ pkgs.gnome3.defaultIconTheme ]; # lid switch is handled via button presses - services.logind.lidSwitch = "ignore"; + services.logind.lidSwitch = lib.mkDefault "ignore"; makefu.awesome.enable = true; i18n.consoleFont = "Lat2-Terminus16"; diff --git a/makefu/2configs/shiori.nix b/makefu/2configs/shiori.nix index 539d11f87..fd6bc9aad 100644 --- a/makefu/2configs/shiori.nix +++ b/makefu/2configs/shiori.nix @@ -18,7 +18,12 @@ in { PrivateTmp = true; }; }; - services.nginx.virtualHosts."bookmark.euer.krebsco.de".locations."/" = { + services.nginx.virtualHosts."bookmark.euer.krebsco.de" = { + forceSSL = true; + enableACME = true; + + locations."/" = { proxyPass = "http://127.0.0.1:${toString web_port}/"; }; + }; } -- cgit v1.2.3