enable nextcloud and disable caddy
This commit is contained in:
parent
8f70e53c61
commit
f9d72d6c1a
1 changed files with 3 additions and 21 deletions
|
|
@ -1,8 +1,4 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
wallfacerTailscaleDomain = "wallfacer.curl-boga.ts.net";
|
||||
in
|
||||
{
|
||||
{ lib, config, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
|
|
@ -10,27 +6,13 @@ in
|
|||
myModules = {
|
||||
enableKDE = false;
|
||||
enableFonts = false;
|
||||
# enableNextcloud = true;
|
||||
enableNextcloud = true;
|
||||
enableHydra = true;
|
||||
enableCaddy = true;
|
||||
# enableCaddy = true;
|
||||
enableAttic = true;
|
||||
enableCloudflared = true;
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts = {
|
||||
"${wallfacerTailscaleDomain}" = {
|
||||
extraConfig = ''
|
||||
handle_path /hydra/* {
|
||||
reverse_proxy localhost:${toString config.services.hydra.port}
|
||||
}
|
||||
handle_path /nextcloud/* {
|
||||
respond "Nextcloud is not configured yet. Please set up the service."
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ config.services.hydra.port ];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
i18n.inputMethod.enable = lib.mkForce false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue