diff --git a/README.md b/README.md index d777b32..d22c99d 100644 --- a/README.md +++ b/README.md @@ -144,4 +144,64 @@ Every Folder for the Applications will be created automatically based on your do ## Volumes on local machine ls /var/lib/docker/volumes -rclone ls storagebox-crypt: \ No newline at end of file +rclone ls storagebox-crypt: + + + +# Wireguard + +- sudo apt install wireguard +- sudo nano /etc/wireguard/wg0.conf + +Copy the config into the file and modify it + +``` + +[Interface] +PrivateKey = +Address = 10.8.0.2/24 + +[Peer] +PublicKey = +PresharedKey = +AllowedIPs = 192.168.1.0/24 +PersistentKeepalive = 25 +Endpoint = +``` + + +- sudo wg-quick up wg0 +- sudo wg +- ping 192.168.1.10 + + +# Backup-Job (with [Wireguard](#wireguard) & Rclone) + +- Run `nano ~/.config/rclone/rclone.conf` again and append the following modified configuration. + +``` +[nas] +type = smb +host = 192.168.x.x +user = your_nas_username +pass = your_nas_password +``` + +after that run `rclone sync storagebox-crypt: nas:/YourShareName --progress --checksum` to sync the data manually. + +To run the sync automatically create a sh-file with `nano /usr/local/bin/backup_storagebox.sh` + +``` +# Start WireGuard VPN +sudo wg-quick up wg0 + +sleep 5 + +rclone sync storagebox-crypt: nas:/YourShareName --progress --checksum + +sudo wg-quick down wg0 +``` + +Then make the script executable with `sudo chmod +x /usr/local/bin/backup_storagebox.sh` +Edit cronjob file with `crontab -e` +and add `0 2 * * * /usr/local/bin/backup_storagebox.sh >> /var/log/backup_storagebox.log 2>&1` for example. This runs every day at 2:00 AM then. \ No newline at end of file diff --git a/projects/nextcloud/README.md b/projects/nextcloud/README.md index 2222711..c23c656 100644 --- a/projects/nextcloud/README.md +++ b/projects/nextcloud/README.md @@ -1,9 +1,6 @@ - - - ## Apps ### External storage support @@ -13,10 +10,5 @@ Enable `External storage support` and create a new external storage in the admin - Foldername: `StorageBox` - External storage: `local` - Authentication: `None` -- Configuration: `/mnt/storagebox/data` +- Configuration: `/mnt/storagebox` - Available for `All people` - - - -### File access control (?) - diff --git a/projects/vaultwarden/docker-compose.yml b/projects/vaultwarden/docker-compose.yml index bf9ff17..a0edfcf 100644 --- a/projects/vaultwarden/docker-compose.yml +++ b/projects/vaultwarden/docker-compose.yml @@ -5,10 +5,11 @@ services: environment: DOMAIN: ${DOMAIN} SIGNUPS_ALLOWED: ${SIGNUPS_ALLOWED} + ADMIN_TOKEN: ${ADMIN_TOKEN} volumes: - - /mnt/storagebox-crypt/vaultwarden:/data + - vaultwarden:/data expose: - 80 volumes: - vaultwarden: \ No newline at end of file + vaultwarden: