From f6c9137850b1872ac03bf35001e21d853b71b27b Mon Sep 17 00:00:00 2001 From: sinavir Date: Sat, 20 Jul 2024 00:44:55 +0200 Subject: [PATCH] fix(signal-irc-bridge): make it work --- .../secrets/signal-irc-bridge-config | Bin 1791 -> 1880 bytes machines/compute01/signal-irc-bridge.nix | 10 +++++++--- npins/sources.json | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/machines/compute01/secrets/signal-irc-bridge-config b/machines/compute01/secrets/signal-irc-bridge-config index 1158ae3c6c98521d120db2d187a0bbef59c28ae8..8290059a6e9fd73162f885b029b105ec1e800f5d 100644 GIT binary patch literal 1880 zcmZA0{m&Z(0S9ni43QI_v0z-pmvn+A?09zV^?EP3IeK?(@2=Ntuh;foWXkp0-nIAA z>s{M>QIjo$XflWB9$)4_nFLTaO(tw?fGC)`kuY8cQ^rf8i(r_*!sHit7AL>VAD+M9 zlkYd*uWt4i`<@Xb{&YC@){g@dn&*JUuVuo}TI~1WLLoS90qS$I=T?cK_C94>=M-@;q0gD)n=91V_W@>KKvb@>Q1Bq7BvV67VBP`=1 z9-Rt#tk0<{HPLC3gqVp!qhhh7-{t9iTgY>TV$^Gu8H%H_qlhHBI1%{L7%O*+2H>Z@ z0NWns7@-=Kea)-IxkPY$V_cy{&8<78%YaovQXG7x7JyzA5;ILt50Ie?QW2zzF=?Xa z1nOBVnrKEp<)vQ1s1L&_F~vv~P>sm9^PcX9d5oGmqbxh@BMBUd9eFv+vWUpdlF<7YJ zdTPm*IbqF6w*gR%l!P5yZaG4NlEhUhy{nsQ4w^J01m}Bx({I)_EzWXyWy;iGr;m$_ z=jUjw9~LOo1|Xe>6i7oToo`6Q3@6n>q38`@bc94MGGc89^m^bl^^&1wfVva0*(9qI$F5oYKS8CqR$a z?6%e=O4E6LQe&$@eZ+P1RVU2?CDBUc$V-PcD~JLF6y(0hqhlJM6V(YKNs_AtyloES zW^tvKZ4%hWFBwa@9ECMhSVrt#q-#pALCpO$n0HJ=cacbL1Q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7K?_$Ba|Erc$7(^Km(&{HXkQ0=cVOV zdYzV}gHo7iBrgGW2#VUgGB6n*u0u7VoBGqBreh+SP3=g)$8JhEW`uJl(inAftLzlKJ!&>{PAI0^%PN7q(G-hl z5!ga5FWIb}0Ro$Y9O*X(h&7FK$6Y_oChBa?%aLnBUQ1JY?!a&0 z)kL$ZY_6g}W*5*{Lr4trhe5#&@YJsAqq(-kiGDW2ghFjlE!`lS%0|{8hHg*bNUF}* znJOS8?u$U(os)y*%=BY2u$rctIwF!t*Vn$@EtD6M^@ZK=4e(g_W@M~EyG+SPVD6- zN4{m9H5ax2m2};WZO^f;R|-KYB}14Zy&`1A8Yl1o~J_vN>qad%ju%k zMw_J70rS*QprGBsyOgXTRCQ_w?*A=0fjS;4m3rl#VGKyYfV>G$!i5D!v%J=x!|k-6 zSqqyOMRXAxDh!7}b8KTwYR>pr$LmhWw#TxQ(^Y}Dq2-KkqGq~8M!g^#)4i>3v*whQ zz0$&Vi74qruox&auIY`cAO6tVZ=O7IU>mgepXS=z+~MM_1NQ?>zVF{ju;^%X-4t zyzhetpI_a9K7J0=zNX)^WA)npZP>83@0A-r_UsRzx^w*0$#4Jk5PAXp{m-vL-`tK| zdG#x6pWgk*J+}>nZZ`u;cE%?n>YadyRel8ujD{{FSy??+p2Ll5r! z2LEXNmKP8F_R66j-T1dZ-?aV3pR7NyE*yGu^2iSQj`LSnONVdS^YZ52Pd)a>mybXF z@Gmc3`}JMHJ7>;?53k&QY4x4S`Iq1~e|PEi%U9aFpFZgvSXp`H@M}kZwdaQEtv7w) z^1ja}2M_=3g|q~``_@OEJ^8OAuRr&0b;r%06Myi%GdB~@-2K}9pD46@A8Z}HQ}+J@ DlRtPf diff --git a/machines/compute01/signal-irc-bridge.nix b/machines/compute01/signal-irc-bridge.nix index 016d350..5d68179 100644 --- a/machines/compute01/signal-irc-bridge.nix +++ b/machines/compute01/signal-irc-bridge.nix @@ -7,12 +7,16 @@ { imports = [ (import (sources.signal-irc-bridge.outPath + "/module.nix")) ]; - systemd.services.signal-irc-bridge.serviceConfig = { - Group = "nginx"; - }; services.signal-irc-bridge = { enable = true; package = nixpkgs.unstable.callPackage (sources.signal-irc-bridge.outPath + "/package.nix") { }; configFile = config.age.secrets."signal-irc-bridge-config".path; }; + + services.nginx.virtualHosts."bridge.dgnum.eu" = { + forceSSL = true; + enableACME = true; + locations."/files/".alias = "/var/lib/signal-irc/hermes-media/"; + }; + users.users.nginx.extraGroups = [ "signal-irc" ]; } diff --git a/npins/sources.json b/npins/sources.json index 4aced00..d94f97a 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -252,9 +252,9 @@ "url": "https://git.dgnum.eu/mdebray/signal-irc-bridge" }, "branch": "master", - "revision": "675453d43a1f1994fc536a5f2210d82b92b9d7c2", + "revision": "688a5c324e032f7716aa69fb7097971fa26bed1d", "url": null, - "hash": "139xy539vcxmv92p7vxykyns35m783v4nywfjb55532cn3h0czv5" + "hash": "153mb2m3ap3v3y1inygqic551vawz1i08pbx2v1viaind3nd2l6m" }, "stateless-uptime-kuma": { "type": "Git",