From eb3eca98c496e6a72b0342cb0d65e5604a3b1017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Mon, 16 Oct 2023 10:15:19 -0300 Subject: [PATCH] ghost: enabled writefreely --- hosts/ghost.nix | 10 ++++++++++ secrets/ghost-writefreely.age | Bin 0 -> 711 bytes secrets/secrets.nix | 1 + system/secrets.nix | 8 +++++++- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 secrets/ghost-writefreely.age diff --git a/hosts/ghost.nix b/hosts/ghost.nix index cf074f9..ff39490 100644 --- a/hosts/ghost.nix +++ b/hosts/ghost.nix @@ -78,6 +78,16 @@ extraConfig.SINGLE_USER_MODE = "true"; }; + services.writefreely = { + enable = true; + acme.enable = true; + nginx.enable = true; + nginx.forceSSL = true; + host = "blog.lelgenio.xyz"; + admin.name = "lelgenio"; + admin.initialPasswordFile = config.age.secrets.ghost-writefreely.path; + }; + services.nginx.virtualHosts.${config.services.nextcloud.hostName} = { forceSSL = true; enableACME = true; diff --git a/secrets/ghost-writefreely.age b/secrets/ghost-writefreely.age new file mode 100644 index 0000000000000000000000000000000000000000..6650686d7130b43a739eec431c1299396db2585a GIT binary patch literal 711 zcmYdHPt{G$OD?J`D9Oyv)5|YP*Do{V(zR14F3!*`Do#{zDlf0_Naym+P4#zj3Czza zFfz_6GY<3fcPhwEGbjisEvu?3EHDf$s0c1ePb`Z_4NW(w3M~)ysql79buVx!Gj=WT zbV=kgDu{APi3rb2@=VH&NGfs7F)J*NG>Gzb^slNi4lfA^O$-e!N%i-0b}?|(_A>Ji zaSjj5@XZVL2q>&dvB>k`%JwKUPEPjr$;&d&@k=ktuZk)*E-){2G1883E~v0@$}aZ^ zi1aSA2sMgIGjfg8F7-=xEG-N%4zO^|ax?NM;L|^^V9& z3ku6AFHG~aGz&^e)X$1cGt77L$;}8(PV{!p_w#f!sLD?+h^nkiGYU=3HOkJ3iU`ij z^f2c#cMi!l^l=X{Pw{v6%Sp}m$u>(V&nXYH2v3i6sz`Az4fZy6E;Y?_E7i8lvB(Y2 zDs~R^a5oDv&90~ju<$JA@=ekXwTv{&2rO}TtV}X5$}2ZXt%wXwGEQ?#bWO<*st71b z$q35M%MQ);4JkMAEp>?q4>C^AO0LSOw8(G@4fiiFwKT~{3ehgt5Auz0%i#hg4VTnd=L+5Q zqSVCVR0We-1yco0o2*oSi-Z6!??5hHU0nsUkR&sYKrh#nLf^>j{IVdY^7Qavma+p@JoEn0|55P|AGJj literal 0 HcmV?d00001 diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 991d30a..6d60a61 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -8,4 +8,5 @@ in "lelgenio-cachix.age".publicKeys = [ main_ssh_public_key ]; "monolith-nix-serve-privkey.age".publicKeys = [ main_ssh_public_key ]; "ghost-nextcloud.age".publicKeys = [ main_ssh_public_key ]; + "ghost-writefreely.age".publicKeys = [ main_ssh_public_key ]; } diff --git a/system/secrets.nix b/system/secrets.nix index 4243486..ebdb48c 100644 --- a/system/secrets.nix +++ b/system/secrets.nix @@ -11,10 +11,16 @@ secrets.monolith-nix-serve-privkey.file = ../secrets/monolith-nix-serve-privkey.age; secrets.ghost-nextcloud = { - file = ../secrets/monolith-nix-serve-privkey.age; + file = ../secrets/ghost-nextcloud.age; mode = "400"; owner = "nextcloud"; group = "nextcloud"; }; + secrets.ghost-writefreely = { + file = ../secrets/ghost-writefreely.age; + mode = "400"; + owner = "writefreely"; + group = "writefreely"; + }; }; }