Add hosts file
This commit is contained in:
parent
032875eec9
commit
3b6cf23db1
4 changed files with 42 additions and 11 deletions
|
|
@ -1,4 +1,8 @@
|
|||
{ pkgs, config, ... }: {
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
hosts = import ../../hosts.nix;
|
||||
in
|
||||
{
|
||||
|
||||
age.secrets = {
|
||||
nextcloud_admin_secret = { file = ../../secrets/nextcloud_admin_secret.age; owner = "nextcloud"; };
|
||||
|
|
@ -35,7 +39,7 @@
|
|||
];
|
||||
|
||||
config = {
|
||||
trustedProxies = [ "172.23.171.70" "baldur.zto" ];
|
||||
trustedProxies = [ hosts.zerotier.ipv4."baldur.zto" hosts.zerotier.ipv6."baldur.zto" "baldur.zto" ];
|
||||
extraTrustedDomains = [ config.services.nextcloud.hostName "freya.zto" ];
|
||||
adminpassFile = config.age.secrets.nextcloud_admin_secret.path;
|
||||
overwriteProtocol = "https";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue