docs/roundcube: add caddy example

This commit is contained in:
headpats
2026-03-18 06:36:29 +01:00
parent cbf450f06c
commit 3dc19d30d1
2 changed files with 24 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
{ config, ... }:
{
services.nginx.virtualHosts.${config.services.roundcube.hostName} = {
forceSSL = false;
enableACME = false;
listen = [
{
addr = "127.0.0.1";
port = 8000;
}
];
};
services.caddy.virtualHosts."${config.services.roundcube.hostName}".extraConfig = ''
reverse_proxy localhost:8000
'';
}
+7
View File
@@ -17,3 +17,10 @@ Once set up you can login with your login account credentials.
.. literalinclude:: ./roundcube.nix .. literalinclude:: ./roundcube.nix
:language: nix :language: nix
To use a different reverse proxy, such as Caddy, bind Roundcube's Nginx virtual
host to ``127.0.0.1`` on a custom port and disable SSL and ACME, as the reverse
proxy will handle those.
.. literalinclude:: ./roundcube-caddy.nix
:language: nix