mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
Compare commits
10 commits
6c010d9f10
...
2932b9f18d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2932b9f18d | ||
|
|
4b86ce3f4e | ||
|
|
c3be13e210 | ||
|
|
78d4524d69 | ||
|
|
a2eb91f66c | ||
|
|
be482eae73 | ||
|
|
2dd987b77e | ||
|
|
f9f4b8b8ec | ||
|
|
99c40c5362 | ||
|
|
f0aa2b0ebe |
1 changed files with 21 additions and 2 deletions
|
|
@ -56,6 +56,11 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
phpfpm.pools.firefly-iii.phpEnv = {
|
||||
TRUSTED_PROXIES = "*";
|
||||
APP_URL = "https://${host}";
|
||||
};
|
||||
|
||||
firefly-iii-data-importer = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
@ -70,7 +75,10 @@ in
|
|||
|
||||
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}
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
@ -95,6 +103,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
users.users.caddy = {
|
||||
extraGroups = [ "firefly-iii" ];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
22
|
||||
80
|
||||
|
|
@ -104,6 +116,10 @@ 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" ];
|
||||
|
|
@ -239,7 +255,10 @@ in
|
|||
};
|
||||
services.caddy.virtualHosts."${host}" = {
|
||||
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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue