···1919 settings = {
2020 PasswordAuthentication = false;
2121 PermitRootLogin = "no";
2222- PerSourcePenalties = "no"; # TODO: Look into mmproxy or some other way of giving the client-ip to openssh
2322 };
2423 };
2524}
+2-2
modules/services/caddy/nextcloud.nix
···11-{ config, ... }:
11+{ ... }:
22{
33 services.caddy.virtualHosts."cloud.lilac.pink".extraConfig = ''
44 encode
55- reverse_proxy ${config.garden.info.network.lily.netbird-ip}:80 {
55+ reverse_proxy [::1]:8080 {
66 # NixOS uses nginx as a webserver for NextCloud by default and nginx will send 301 redirects to the client
77 # using http as the protocol instead of https since it doesn't have SSL certs of its own.
88 # Because the redirect isn't also https, this can cause a Content-Security-Policy error on the client.