mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
test: trying to fix opencloud
This commit is contained in:
parent
3edcf0883b
commit
6a7fb05c69
1 changed files with 13 additions and 8 deletions
|
|
@ -63,6 +63,7 @@ in
|
|||
};
|
||||
script = ''
|
||||
mkdir -p /etc/opencloud-secrets
|
||||
mkdir /etc/static/opencloud
|
||||
cp /run/secrets/projectenv /etc/opencloud-secrets/env
|
||||
chmod 755 /etc/opencloud-secrets
|
||||
chmod 644 /etc/opencloud-secrets/*
|
||||
|
|
@ -171,16 +172,20 @@ in
|
|||
|
||||
services.caddy.virtualHosts = {
|
||||
"${host}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy ${serviceCfg.interface.ip}:${toString serviceCfg.ports.port0} {
|
||||
header_up X-Real-IP {remote_host}
|
||||
}
|
||||
extraConfig =
|
||||
let
|
||||
credPath = "/var/lib/acme/${host}";
|
||||
in
|
||||
''
|
||||
reverse_proxy ${serviceCfg.interface.ip}:${toString serviceCfg.ports.port0} {
|
||||
header_up X-Real-IP {remote_host}
|
||||
}
|
||||
|
||||
redir /.well-known/carddav /remote.php/dav/ 301
|
||||
redir /.well-known/caldav /remote.php/dav/ 301
|
||||
redir /.well-known/carddav /remote.php/dav/ 301
|
||||
redir /.well-known/caldav /remote.php/dav/ 301
|
||||
|
||||
tls /var/lib/acme/${host}/fullchain.pem /var/lib/acme/${host}/key.pem
|
||||
'';
|
||||
tls ${credPath}/fullchain.pem ${credPath}/key.pem
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue