feat(firefly): proxy /relatorio-layla to files.m7.rs/relatorio-financeiro.html

This commit is contained in:
Gabriel Fontes
2026-06-14 21:46:35 -03:00
parent af92191d90
commit 6c8edbb05c
+18 -1
View File
@@ -1,4 +1,8 @@
{config, pkgs, ...}: {
{
config,
pkgs,
...
}: {
services.firefly-iii = {
enable = true;
package = pkgs.firefly-iii.overrideAttrs (old: rec {
@@ -42,6 +46,19 @@
services.nginx.virtualHosts.${config.services.firefly-iii.virtualHost} = {
forceSSL = true;
enableACME = true;
locations."^~ /relatorio-layla" = {
proxyPass = "https://files.m7.rs/relatorio-financeiro.html";
recommendedProxySettings = false;
extraConfig = ''
proxy_ssl_server_name on;
proxy_set_header Host files.m7.rs;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $hostname;
'';
};
};
sops.secrets = {