mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
feat: firefly-iii test
This commit is contained in:
parent
c712e00d8f
commit
86695b2de2
1 changed files with 13 additions and 4 deletions
|
@ -12,7 +12,7 @@ in
|
||||||
services = {
|
services = {
|
||||||
firefly-iii = {
|
firefly-iii = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHost = host;
|
virtualHost = "https://${host}";
|
||||||
settings = {
|
settings = {
|
||||||
APP_URL = host;
|
APP_URL = host;
|
||||||
APP_KEY_FILE = config.sops.secrets."${service.name}-key".path;
|
APP_KEY_FILE = config.sops.secrets."${service.name}-key".path;
|
||||||
|
@ -27,10 +27,19 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${host}" = {
|
"${host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
redir /.well-known/carddav /remote.php/dav/ 301
|
reverse_proxy ${localhost}:${toString service.ports.port0} {
|
||||||
redir /.well-known/caldav /remote.php/dav/ 301
|
header_up X-Forwarded-Proto {scheme}
|
||||||
|
header_up X-Forwarded-Host {host}
|
||||||
|
header_up X-Forwarded-Server {host}
|
||||||
|
header_up X-Forwarded-For {remote_host}
|
||||||
|
header_up Host {host}
|
||||||
|
|
||||||
reverse_proxy ${localhost}:${toString service.ports.port0}
|
timeout 300s
|
||||||
|
}
|
||||||
|
|
||||||
|
request_body {
|
||||||
|
max_size 64MB
|
||||||
|
}
|
||||||
|
|
||||||
tls ${service.ssl.cert} ${service.ssl.key}
|
tls ${service.ssl.cert} ${service.ssl.key}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue