From 63df6f75b532931a1353884a883fb8425455bc26 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 17 Oct 2024 14:37:42 +0200 Subject: Uncomment SSL for obsidian --- machines/t14/default.nix | 7 ------- modules/obsidian-livesync.nix | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/machines/t14/default.nix b/machines/t14/default.nix index 69b8c64..acb9b2c 100644 --- a/machines/t14/default.nix +++ b/machines/t14/default.nix @@ -4,7 +4,6 @@ [ # Include the results of the hardware scan. ../base.nix ../../modules/media-drive.nix - ../../modules/obsidian-livesync.nix ../x220-gnome/pass.nix ./hardware-configuration.nix ../x220-gnome/pn.nix @@ -14,12 +13,6 @@ networking.networkmanager.enable = true; networking.hostName = "t14"; - services.obsidian-livesync = { - enable = true; - domain = "test.localhost"; - couchdb.adminPass = "123"; - }; - # Set your time zone. time.timeZone = "Europe/Warsaw"; diff --git a/modules/obsidian-livesync.nix b/modules/obsidian-livesync.nix index 17f3a1c..5841202 100644 --- a/modules/obsidian-livesync.nix +++ b/modules/obsidian-livesync.nix @@ -72,8 +72,8 @@ in services.nginx = { enable = true; virtualHosts.${cfg.domain} = { -# enableACME = true; -# forceSSL = true; + enableACME = true; + forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:${toString couchdb-port}"; extraConfig = '' -- cgit 1.4.1