Nextcloud
This commit is contained in:
parent
46db7bd979
commit
1063bbdb40
|
@ -37,7 +37,6 @@
|
||||||
epkgs.embark-consult
|
epkgs.embark-consult
|
||||||
epkgs.emmet-mode
|
epkgs.emmet-mode
|
||||||
epkgs.envrc
|
epkgs.envrc
|
||||||
# epkgs.eterm-256color
|
|
||||||
epkgs.evil
|
epkgs.evil
|
||||||
epkgs.evil-collection
|
epkgs.evil-collection
|
||||||
epkgs.evil-nerd-commenter
|
epkgs.evil-nerd-commenter
|
||||||
|
@ -86,6 +85,7 @@
|
||||||
epkgs.python-mode
|
epkgs.python-mode
|
||||||
epkgs.rainbow-delimiters
|
epkgs.rainbow-delimiters
|
||||||
epkgs.request
|
epkgs.request
|
||||||
|
epkgs.restclient
|
||||||
epkgs.rustic
|
epkgs.rustic
|
||||||
epkgs.smartparens
|
epkgs.smartparens
|
||||||
epkgs.svelte-mode
|
epkgs.svelte-mode
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./baserow.nix
|
./baserow.nix
|
||||||
./matomo.nix
|
./matomo.nix
|
||||||
|
./nextcloud.nix
|
||||||
./wordpress.nix
|
./wordpress.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -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" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -32,6 +32,13 @@
|
||||||
users = [ "m3tam3re:$apr1$1xqdta2b$DIVNvvp5iTUGNccJjguKh." ];
|
users = [ "m3tam3re:$apr1$1xqdta2b$DIVNvvp5iTUGNccJjguKh." ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
nextcloud_redirectregex = {
|
||||||
|
redirectRegex = {
|
||||||
|
permanent = true;
|
||||||
|
regex = "https://(.*)/.well-known/(?:card|cal)dav";
|
||||||
|
replacement = "https://\${1}/remote.php/dav";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
baserow.loadBalancer.servers = [{ url = "http://localhost:3001/"; }];
|
baserow.loadBalancer.servers = [{ url = "http://localhost:3001/"; }];
|
||||||
|
@ -112,6 +119,16 @@
|
||||||
service = "invidious";
|
service = "invidious";
|
||||||
entrypoints = "websecure";
|
entrypoints = "websecure";
|
||||||
};
|
};
|
||||||
|
nextcloud = {
|
||||||
|
rule = "Host(`cloud.lanakk.com`)";
|
||||||
|
tls = {
|
||||||
|
certResolver = "godaddy";
|
||||||
|
domains = "cloud.lanakk.com";
|
||||||
|
};
|
||||||
|
service = "nextcloud";
|
||||||
|
entrypoints = "websecure";
|
||||||
|
middlewares = "nextcloud_redirectregex";
|
||||||
|
};
|
||||||
wireguard = {
|
wireguard = {
|
||||||
rule = "Host(`wg.lanakk.com`)";
|
rule = "Host(`wg.lanakk.com`)";
|
||||||
tls = {
|
tls = {
|
||||||
|
|
Loading…
Reference in New Issue