mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 21:42:16 -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 = {
|
firefly-iii-data-importer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
@ -75,10 +70,7 @@ in
|
||||||
|
|
||||||
encode gzip
|
encode gzip
|
||||||
|
|
||||||
php_fastcgi unix//run/phpfpm/firefly-iii.sock {
|
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}
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -103,10 +95,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.caddy = {
|
|
||||||
extraGroups = [ "firefly-iii" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
22
|
22
|
||||||
80
|
80
|
||||||
|
|
@ -116,10 +104,6 @@ in
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
services = {
|
services = {
|
||||||
caddy = {
|
|
||||||
after = [ "phpfpm-firefly-iii.service" ];
|
|
||||||
requires = [ "phpfpm-firefly-iii.service" ];
|
|
||||||
};
|
|
||||||
fix-secrets-permissions = {
|
fix-secrets-permissions = {
|
||||||
description = "Fix secrets permissions for firefly-iii";
|
description = "Fix secrets permissions for firefly-iii";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
@ -255,10 +239,7 @@ in
|
||||||
};
|
};
|
||||||
services.caddy.virtualHosts."${host}" = {
|
services.caddy.virtualHosts."${host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy http://${serviceCfg.interface.ip}:80 {
|
reverse_proxy http://${serviceCfg.interface.ip}:80
|
||||||
header_up X-Forwarded-Proto https
|
|
||||||
header_up X-Forwarded-Host {host}
|
|
||||||
}
|
|
||||||
|
|
||||||
tls ${serviceCfg.ssl.cert} ${serviceCfg.ssl.key}
|
tls ${serviceCfg.ssl.cert} ${serviceCfg.ssl.key}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue