bicep/matrix/hookshot: add nginx
This commit is contained in:
parent
c1833eb07c
commit
d4fd3f8332
@ -1,5 +1,10 @@
|
||||
{ config, lib, unstablePkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.matrix-hookshot;
|
||||
webhookListenAddress = "127.0.0.1";
|
||||
webhookListenPort = 9000;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./module.nix
|
||||
@ -30,18 +35,19 @@
|
||||
};
|
||||
listeners = [
|
||||
{
|
||||
bindAddress = "127.0.0.1";
|
||||
port = 9000;
|
||||
bindAddress = webhookListenAddress;
|
||||
port = webhookListenPort;
|
||||
resources = [
|
||||
"webhooks"
|
||||
"metrics"
|
||||
"provisioning"
|
||||
# "metrics"
|
||||
# "provisioning"
|
||||
"widgets"
|
||||
];
|
||||
}
|
||||
];
|
||||
generic = {
|
||||
enabled = true;
|
||||
outbound = true;
|
||||
};
|
||||
feeds = {
|
||||
enabled = true;
|
||||
@ -54,4 +60,11 @@
|
||||
services.matrix-synapse-next.settings = {
|
||||
app_service_config_files = [ config.sops.secrets."matrix/registrations/matrix-hookshot".path ];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."hookshot.pvv.ntnu.no" = {
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${webhookListenAddress}:${toString webhookListenPort}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ mjolnir:
|
||||
access_token: ENC[AES256_GCM,data:ERFqZjK7MRD0xWt91FNCIxP1YC6Qj54QgnckHlCTtcQVLWaM1h2h9lHS+K8=,iv:1d7vmFkXAPcsmumzlmOT31amdrKLWtL5sJiS8G9g+LE=,tag:2l0vWzJ6P12ofuBdf5CCWw==,type:str]
|
||||
registrations:
|
||||
mx-puppet-discord: ENC[AES256_GCM,data:FleyXxgOmc05nTP6M2DBJlacufN3p/05eZm4kB8+K4ci0k24o3zli988wlM/kyeZmxu4pgQlJ3lNLte4uip2hBXHWG5t5Ldzmr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0G4vhRj0PuvhFSKNdnf0KPnrvL4ACxE5DdomUhM2uilxEQvcNxs1hWB5LXn3uqSvjzD+NRPFkaey0BSUQmtgRURaP18dVzZBVbnPZNvypVFyfFkUbmRIBsb/UWE9ARIlr4oPklxQBYxHo+DcIO8Y0YCh7bIVNjmjCor5cTWVroaJeryuDHUe6blgQ8hX7QXFnjrTM3YEuvVsQbzapMNs+6TGZwGPBq2Rne8DPQxFH/N5QSMwTSbtT/dR6xdp37FJaA4kXByoMweNHgotK3l3TucYowCYX6L3uH2KQm8+47Qd2/yxkRWpkHc58fx0mMbqzPU92rGX6vTDmkLgbTnyNVtod7Y2kgf7fh6CsRnuvpWZFp2tHzbToZ/CYnQILy6E6c7UZfV3oHTiJKfWRJg5p2pwFay6DBLwKL5PAurEuDOoAs4KVW9L5vIvg9WWvgOp3BrQJ915yugizUDVjO9AkNbrGRlPD+HJ8vk913h2Uk0Bi2i52ROeycWX3ncHTTGhurwBjY4Jx2usqxLSSl1HkI6yVPDY3FmkXv8XNzLwHI=,iv:gr8+o05ZPxzsw4stuNpY65ABUVTgrRF8NF00vOLTkIA=,tag:h1MCuZxHc+RLbre+0P++aw==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
@ -69,8 +69,8 @@ sops:
|
||||
WEh5NFN6SFF1TlltdWFWTGw4MHRHUkUKrKIvC87xjEmwxPQhH8dN+ZuaJTCgPY28
|
||||
pR62KxmoKFICLTHPpYP3euiAx5M9BWvgvCnA/US/5klpk8MtlreNFA==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2024-10-12T21:48:59Z"
|
||||
mac: ENC[AES256_GCM,data:fLpGjWpoLwwwofwBzkNakD9JoNjbbGOvTEKrrT1jTWXo26Y01NkuqTEEwbmNkODOjmlyeTovRnY3K0dujtEcKJO8Nlu3uNCiL/ie3KitYTQH1lrsI7IdtXvCRELU5trQCqFmBjYUFhFyldKyKL30QxEuYxxTa+t1eBmtOL4jBTY=,iv:kcAPBuA3R5uF6bTfffMgdnsySKxSmCheQx1tOpRwyf4=,tag:aUGRR5w8Ljcdh458ir99DA==,type:str]
|
||||
lastmodified: "2024-10-13T04:02:47Z"
|
||||
mac: ENC[AES256_GCM,data:e9UTv8AbchriDXpfWjTKb6QdtqXiTMI9JsoA829eTjbVeoo0Mu5JmYorqORAtLvpsIOICRRR/DvQ4RDV/QZSpRUKWuZ6YKBm10C3eGwmX+CaRkgk8rxQn77XG5M1jFNtmALYp8/ssp145Akp8hNP9Ew+s/hX/Pw6PqPArlyoPdM=,iv:aRcuwbEIM0dLCMzoAwFi7K2w8GjYaWyNby+bSmm8/tY=,tag:Ku8dpZt0kgDH7qpfqSpw0Q==,type:str]
|
||||
pgp:
|
||||
- created_at: "2024-08-04T00:03:46Z"
|
||||
enc: |-
|
||||
|
Loading…
Reference in New Issue
Block a user