mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
feat: wireguard test
This commit is contained in:
parent
4fed53c519
commit
6e9aaac321
1 changed files with 6 additions and 12 deletions
|
@ -46,18 +46,12 @@ in
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${configHelpers.host}" = {
|
"${configHelpers.host}" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@allowed_ips {
|
|
||||||
remote_ip 10.100.0.2
|
|
||||||
}
|
|
||||||
handle @allowed_ips {
|
|
||||||
redir /.well-known/carddav /remote.php/dav/ 301
|
redir /.well-known/carddav /remote.php/dav/ 301
|
||||||
redir /.well-known/caldav /remote.php/dav/ 301
|
redir /.well-known/caldav /remote.php/dav/ 301
|
||||||
|
|
||||||
reverse_proxy ${ceres.wireguard.ip0}:${toString configHelpers.service.ports.port0}
|
reverse_proxy ${ceres.wireguard.ip0}:${toString configHelpers.service.ports.port0}
|
||||||
}
|
|
||||||
handle {
|
|
||||||
respond "Access Denied" 403
|
|
||||||
}
|
|
||||||
tls ${configHelpers.service.ssl.cert} ${configHelpers.service.ssl.key}
|
tls ${configHelpers.service.ssl.cert} ${configHelpers.service.ssl.key}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue