mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
Compare commits
No commits in common. "2932b9f18de9ec394ddbc0db87cb1c634d46fd87" and "6c010d9f106e0b1a6aeb067b4b68662ea6c23126" have entirely different histories.
2932b9f18d
...
6c010d9f10
1 changed files with 2 additions and 21 deletions
|
|
@ -56,11 +56,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
phpfpm.pools.firefly-iii.phpEnv = {
|
||||
TRUSTED_PROXIES = "*";
|
||||
APP_URL = "https://${host}";
|
||||
};
|
||||
|
||||
firefly-iii-data-importer = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
@ -75,10 +70,7 @@ in
|
|||
|
||||
encode gzip
|
||||
|
||||
php_fastcgi unix//run/phpfpm/firefly-iii.sock {
|
||||
env HTTPS {http.request.header.X-Forwarded-Proto}
|
||||
env HTTP_X_FORWARDED_PROTO {http.request.header.X-Forwarded-Proto}
|
||||
}
|
||||
php_fastcgi unix//run/phpfpm/firefly-iii.sock
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
@ -103,10 +95,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
users.users.caddy = {
|
||||
extraGroups = [ "firefly-iii" ];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
22
|
||||
80
|
||||
|
|
@ -116,10 +104,6 @@ in
|
|||
|
||||
systemd = {
|
||||
services = {
|
||||
caddy = {
|
||||
after = [ "phpfpm-firefly-iii.service" ];
|
||||
requires = [ "phpfpm-firefly-iii.service" ];
|
||||
};
|
||||
fix-secrets-permissions = {
|
||||
description = "Fix secrets permissions for firefly-iii";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
|
@ -255,10 +239,7 @@ in
|
|||
};
|
||||
services.caddy.virtualHosts."${host}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy http://${serviceCfg.interface.ip}:80 {
|
||||
header_up X-Forwarded-Proto https
|
||||
header_up X-Forwarded-Host {host}
|
||||
}
|
||||
reverse_proxy http://${serviceCfg.interface.ip}:80
|
||||
|
||||
tls ${serviceCfg.ssl.cert} ${serviceCfg.ssl.key}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue