Compare commits
4 commits
d290047090
...
5ddd724067
Author | SHA1 | Date | |
---|---|---|---|
5ddd724067 | |||
4e562a9364 | |||
269e691ae1 | |||
6a5f28a561 |
4 changed files with 26 additions and 4 deletions
|
@ -17,7 +17,9 @@ in
|
|||
};
|
||||
|
||||
caddy.virtualHosts."gts.thewordnerd.info".extraConfig = ''
|
||||
reverse_proxy http://localhost:8081
|
||||
reverse_proxy http://localhost:8081 {
|
||||
flush_interval -1
|
||||
}
|
||||
'';
|
||||
};
|
||||
environment.systemPackages = [ package ];
|
||||
|
|
|
@ -61,12 +61,14 @@
|
|||
};
|
||||
virtualisation.docker.enable = true;
|
||||
users.users.nextcloud.extraGroups = [ "docker" ];
|
||||
environment.systemPackages = [
|
||||
environment.systemPackages = with pkgs; [
|
||||
poppler_utils
|
||||
(pkgs.writeScriptBin "occ" ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
exec nextcloud-occ "$@"
|
||||
'')
|
||||
];
|
||||
programs.java.binfmt = true;
|
||||
system.stateVersion = "24.11";
|
||||
};
|
||||
# https://discourse.nixos.org/t/podman-docker-in-nixos-container-ideally-in-unprivileged-one/22909/12
|
||||
|
|
|
@ -126,8 +126,25 @@
|
|||
443
|
||||
];
|
||||
|
||||
services.caddy.virtualHosts."thewordnerd.info".extraConfig =
|
||||
''redir https://www.thewordnerd.info{uri}'';
|
||||
services.caddy.virtualHosts."thewordnerd.info".extraConfig = ''
|
||||
@webfinger {
|
||||
path /.well-known/webfinger
|
||||
# query acct=nolan%3Athewordnerd%40info
|
||||
}
|
||||
handle @webfinger {
|
||||
rewrite * /.well-known/webfinger?resource=acct%3Anolan%40gts.thewordnerd.info
|
||||
reverse_proxy localhost:8081
|
||||
}
|
||||
handle /.well-known/nodeinfo {
|
||||
reverse_proxy localhost:8081
|
||||
}
|
||||
handle /.well-known/host-meta {
|
||||
reverse_proxy localhost:8081
|
||||
}
|
||||
handle {
|
||||
redir https://www.thewordnerd.info{uri}
|
||||
}
|
||||
'';
|
||||
|
||||
services.caddy.virtualHosts."www.thewordnerd.info".extraConfig = ''
|
||||
file_server
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
};
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
services.ssh-agent.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue