fix: The caddy port must be a string

This commit is contained in:
pazpi 2024-11-06 12:26:47 +01:00
parent ec65523af5
commit ec54078025
2 changed files with 1 additions and 2 deletions

View file

@ -10,7 +10,6 @@
let let
agenixOverlay = final: prev: { agenix = agenix.packages.${prev.system}.default; }; agenixOverlay = final: prev: { agenix = agenix.packages.${prev.system}.default; };
# customOverlays = import ../overlay;
customOverlays = ( customOverlays = (
final: prev: { final: prev: {
# caddy-custom = prev.callPackage ../overlay/caddy-custom.nix { }; # caddy-custom = prev.callPackage ../overlay/caddy-custom.nix { };

View file

@ -144,7 +144,7 @@ in
import cloudflare import cloudflare
''; '';
virtualHosts."onlyoffice.${domain}".extraConfig = '' virtualHosts."onlyoffice.${domain}".extraConfig = ''
reverse_proxy http://${host}:${config.services.onlyoffice.port} reverse_proxy http://${host}:${toString config.services.onlyoffice.port}
import cloudflare import cloudflare
# Required to circumvent bug of Onlyoffice loading mixed non-https content # Required to circumvent bug of Onlyoffice loading mixed non-https content
header_up X-Forwarded-Proto https header_up X-Forwarded-Proto https