mirror of
https://github.com/kmein/niveum
synced 2026-03-18 02:51:08 +01:00
feat: hetzner storagebbox for nextcloud
This commit is contained in:
2
secrets
2
secrets
Submodule secrets updated: 23285bc123...d0b68f81a5
@@ -5,8 +5,29 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (import ../../lib) localAddresses;
|
inherit (import ../../lib) localAddresses;
|
||||||
|
storageBoxMountPoint = "/mnt/storagebox";
|
||||||
in {
|
in {
|
||||||
|
# https://docs.hetzner.com/de/robot/storage-box/access/access-samba-cifs/
|
||||||
|
fileSystems.${storageBoxMountPoint} = {
|
||||||
|
device = "//u359050.your-storagebox.de/backup";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"iocharset=utf8"
|
||||||
|
"rw"
|
||||||
|
"credentials=${config.age.secrets.hetzner-storagebox-credentials.path}"
|
||||||
|
"uid=nextcloud"
|
||||||
|
"gid=nextcloud"
|
||||||
|
"file_mode=0660"
|
||||||
|
"dir_mode=0770"
|
||||||
|
"seal"
|
||||||
|
"mfsymlinks" # nextcloud-setup wants to create symlinks on cifs
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
|
hetzner-storagebox-credentials = {
|
||||||
|
file = ../../secrets/hetzner-storagebox-credentials.age;
|
||||||
|
};
|
||||||
nextcloud-password-database = {
|
nextcloud-password-database = {
|
||||||
file = ../../secrets/nextcloud-password-database.age;
|
file = ../../secrets/nextcloud-password-database.age;
|
||||||
owner = "nextcloud";
|
owner = "nextcloud";
|
||||||
@@ -35,6 +56,8 @@ in {
|
|||||||
|
|
||||||
hostName = "cloud.kmein.de";
|
hostName = "cloud.kmein.de";
|
||||||
|
|
||||||
|
datadir = "${storageBoxMountPoint}/nextcloud";
|
||||||
|
|
||||||
phpOptions."opcache.interned_strings_buffer" = "32"; # buffer size in MB
|
phpOptions."opcache.interned_strings_buffer" = "32"; # buffer size in MB
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
Reference in New Issue
Block a user