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
1bf51ec551
commit
b280e69c40
3 changed files with 9 additions and 4 deletions
|
@ -46,6 +46,11 @@ in
|
|||
virtualHosts = {
|
||||
"${configHelpers.host}" = {
|
||||
extraConfig = ''
|
||||
@blocked {
|
||||
not remote_ip 10.100.0.0/24
|
||||
}
|
||||
respond @blocked 403 "Access allowed only via WireGuard"
|
||||
|
||||
redir /.well-known/carddav /remote.php/dav/ 301
|
||||
redir /.well-known/caldav /remote.php/dav/ 301
|
||||
|
||||
|
@ -87,7 +92,7 @@ in
|
|||
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
interfaces.wg0.allowedTCPPorts = [
|
||||
configHelpers.service.ports.port0
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue