From 85b3182df460831b67099e6d0cbb11248237063c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 24 Mar 2023 20:37:37 +0000 Subject: [PATCH] update cryptpad --- nixos/boxes/vpsfree1/cryptpad.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/nixos/boxes/vpsfree1/cryptpad.nix b/nixos/boxes/vpsfree1/cryptpad.nix index 9c97285a..7fb688de 100644 --- a/nixos/boxes/vpsfree1/cryptpad.nix +++ b/nixos/boxes/vpsfree1/cryptpad.nix @@ -1,18 +1,12 @@ -{ - config, - pkgs, - inputs, - lib, - ... -}: { - imports = [../nginx.nix]; +{ config, pkgs, inputs, lib, ... }: { + imports = [ ../nginx.nix ]; services.nginx = { virtualHosts = { "notes.purrfect.estate" = { forceSSL = true; enableACME = true; - serverAliases = ["notes-sandbox.purrfect.estate"]; + serverAliases = [ "notes-sandbox.purrfect.estate" ]; locations."/" = { proxyPass = "http://127.0.0.1:9005"; proxyWebsockets = true; @@ -21,7 +15,8 @@ }; }; virtualisation.oci-containers.containers.cryptpad = { - image = "promasu/cryptpad:nginx"; + image = + "promasu/cryptpad@sha256:29c61f69e41173188c0592e72f2273cf23a83f48e7d143337e2cd7fea441ed87"; volumes = [ "${./cryptpad.config.js}:/cryptpad/config/config.js" @@ -39,6 +34,6 @@ CPAD_TRUSTED_PROXY = "0.0.0.0/0"; CPAD_HTTP2_DISABLE = "true"; }; - ports = ["9005:80"]; + ports = [ "9005:80" ]; }; }