diff --git a/nixos/configs/sputnik/codimd.nix b/nixos/configs/sputnik/codimd.nix index f164dd3..21d432b 100644 --- a/nixos/configs/sputnik/codimd.nix +++ b/nixos/configs/sputnik/codimd.nix @@ -1,39 +1,36 @@ -{ config, lib, pkgs, ... }: { +{ config, lib, pkgs, ... }: +let + domain = "md.ingolf-wagner.de"; +in +{ services.nginx.enable = true; services.nginx.virtualHosts.hedgedoc = { - listen = [ - { - addr = "0.0.0.0"; - port = 4443; - ssl = true; - } - { - addr = "0.0.0.0"; - port = 80; - ssl = false; - } - ]; enableACME = true; - addSSL = true; - serverName = "md.ingolf-wagner.de"; - locations."/".extraConfig = '' - client_max_body_size 4G; - proxy_set_header Host $host; - proxy_pass http://localhost:3091; - ''; + forceSSL = true; + serverName = domain; + locations."/" = { + proxyPass = "http://localhost:3091"; + proxyWebsockets = true; + + #extraConfig = '' + # client_max_body_size 4G; + #''; + }; }; services.hedgedoc = { enable = true; configuration = { - allowFreeURL = true; db = { dialect = "sqlite"; storage = "/var/lib/hedgedoc/db.sqlite"; useCDN = false; }; + allowFreeURL = true; + domain = domain; port = 3091; + useCDN = false; }; }; diff --git a/nixos/configs/workhorse/mail-fetcher.nix b/nixos/configs/workhorse/mail-fetcher.nix index 6b94422..339972e 100644 --- a/nixos/configs/workhorse/mail-fetcher.nix +++ b/nixos/configs/workhorse/mail-fetcher.nix @@ -3,6 +3,7 @@ let junk_filter = [ "from:booking.com" + "subject:Gewinn" "from:brompton.com" "from:circleci.com OR (from:noreply@github.com AND to:audio-overlay@googlegroups.com)" "from:codepen.io"