Nextcloud

This commit is contained in:
m3tam3re 2023-02-10 22:36:25 +01:00
parent 46db7bd979
commit 1063bbdb40
4 changed files with 33 additions and 1 deletions

View File

@ -37,7 +37,6 @@
epkgs.embark-consult
epkgs.emmet-mode
epkgs.envrc
# epkgs.eterm-256color
epkgs.evil
epkgs.evil-collection
epkgs.evil-nerd-commenter
@ -86,6 +85,7 @@
epkgs.python-mode
epkgs.rainbow-delimiters
epkgs.request
epkgs.restclient
epkgs.rustic
epkgs.smartparens
epkgs.svelte-mode

View File

@ -2,6 +2,7 @@
imports = [
./baserow.nix
./matomo.nix
./nextcloud.nix
./wordpress.nix
./wireguard.nix
];

View File

@ -0,0 +1,14 @@
{ config, outputs, ... }: {
virtualisation.oci-containers.containers."nextcloud" = {
image = "docker.io/nextcloud";
environment = {
TRUSTED_PROXIES = "10.88.0.1/16";
OVERWRITEPROTOCOL = "https";
OVERWRITECLIURL = "https://cloud.lanakk.com";
OVERWRITEHOST = "cloud.lanakk.com";
};
ports = [ "3005:80" ];
volumes = [ "nextcloud_data:/var/www/html" ];
extraOptions = [ "--add-host=mysql:10.88.0.1" ];
};
}

View File

@ -32,6 +32,13 @@
users = [ "m3tam3re:$apr1$1xqdta2b$DIVNvvp5iTUGNccJjguKh." ];
};
};
nextcloud_redirectregex = {
redirectRegex = {
permanent = true;
regex = "https://(.*)/.well-known/(?:card|cal)dav";
replacement = "https://\${1}/remote.php/dav";
};
};
};
services = {
baserow.loadBalancer.servers = [{ url = "http://localhost:3001/"; }];
@ -112,6 +119,16 @@
service = "invidious";
entrypoints = "websecure";
};
nextcloud = {
rule = "Host(`cloud.lanakk.com`)";
tls = {
certResolver = "godaddy";
domains = "cloud.lanakk.com";
};
service = "nextcloud";
entrypoints = "websecure";
middlewares = "nextcloud_redirectregex";
};
wireguard = {
rule = "Host(`wg.lanakk.com`)";
tls = {