Initial commit

This commit is contained in:
2025-11-06 20:28:41 +01:00
commit 5fc4fbcef3
182 changed files with 4742 additions and 0 deletions

2
home/arr/.secrets Normal file
View File

@@ -0,0 +1,2 @@
vpn-password=em7nvgebJxKfLudBaP2kL5sW
vpn-user=qkidWqgZDC8CxDmPaHiHyMY4

1
home/gitea/.secrets Normal file
View File

@@ -0,0 +1 @@
database-password=gD6J2CRDpRGI5f14QSmF0SuBdhYAEDdy

View File

@@ -0,0 +1,2 @@
jdownloader-email=guillaume.tache@gmail.com
jdownloader-password=^v2NL*!4GL*Ry%~B

1
home/navidrome/.secrets Normal file
View File

@@ -0,0 +1 @@
encryption-key=dFUu7Iu7tDrRtOOwFrgCAbgEuTvXeFKj

6
home/nextcloud/.secrets Normal file
View File

@@ -0,0 +1,6 @@
database-password=7w6,{R_C=LdZ@9iy
database-root-password=[-B#xMVj~\3X*vC>
database-user=nextcloud
nextcloud-admin-password=tcf@fg]%2BL]K*p`
nextcloud-admin-user=admin
nextcloud-redis-password=AznBSv9lCflXg2z0

View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -o errexit -o pipefail -o noclobber -o nounset
podman exec nextcloud ./occ preview:pre-generate

2
home/paperless/.secrets Normal file
View File

@@ -0,0 +1,2 @@
database-password=paperless
paperless-secret-key=9+Zw}(Nqv<>#@=s2^%a_hMlh@fBmmQch[<_dS{#tP=^b8S)*{Mc(JrI1SmK`r4=n

1
home/pihole/.secrets Normal file
View File

@@ -0,0 +1 @@
webserver-password=.\_,`>ol9=.f+Y{R

View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -o errexit -o noclobber -o pipefail -o nounset
podman exec unbound sh -c "/usr/bin/curl -sSL https://www.internic.net/domain/named.cache -o /usr/local/unbound/iana.d/root.hints"

View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -o errexit -o noclobber -o pipefail -o nounset
podman exec unbound sh -c "curl -sSL https://www.internic.net/domain/named.cache -o /usr/local/unbound/iana.d/root.hints"
podman exec unbound sh -c "curl -sSL https://www.internic.net/domain/root.zone -o /usr/local/unbound/iana.d/root.zone"
podman exec unbound sh -c "unbound-anchor -v -a /usr/local/unbound/iana.d/root.key"
systemctl --user restart unbound

View File

@@ -0,0 +1,2 @@
vpn-password=em7nvgebJxKfLudBaP2kL5sW
vpn-user=qkidWqgZDC8CxDmPaHiHyMY4

2
home/root/.secrets Normal file
View File

@@ -0,0 +1,2 @@
tga-credentials=tga:9yL5b4+WqM
zero-credentials=zero:38cjbsqogkHbsq36uXkWgCpla3cxYopL

8
home/root/copy-music.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -o errexit -o pipefail -o noclobber -o nounset
target=/var/mnt/nas/containers/navidrome/storage/music
ugid="$(stat -c "%U:%G" "${target}")"
source=/var/mnt/nas/containers/nextcloud/storage/data/__groupfolders/1/media/music
podman run --rm -v "${source}":/input -v "${target}":/output docker.io/eeacms/rsync -a /input /output
chown -R "${ugid}" "${target}"

View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -o errexit -o pipefail -o noclobber -o nounset
echo "Running $(date)"
torrents=/var/mnt/nas/containers/qbittorrent/storage/torrents
jdownloader=/var/mnt/nas/containers/jdownloader/storage/output/completed
target=/var/mnt/nas/containers/nextcloud/storage/data/__groupfolders/1/downloads
num_torrents="$(find "${torrents}" -maxdepth 1 -type f | wc -l)" || echo 0
if [[ "${num_torrents}" -gt 0 ]]; then
find "${torrents}" -maxdepth 1 -type f -exec mv {} "${target}/" \;
fi
echo "Found ${num_torrents} torrent files"
num_jdownloader="$(ls "${jdownloader}" | wc -l)" || echo 0
if [[ "${num_jdownloader}" -gt 0 ]]; then
mv "${jdownloader}/"* "${target}/"
fi
echo "Found ${num_jdownloader} jdownloader files"
total_files=$(("${num_torrents}" + "${num_jdownloader}"))
if [[ "${total_files}" -gt 0 ]]; then
ugid="$(stat -c "%U:%G" "${target}")"
chown -R "${ugid}" "${target}/"*
chmod 755 "${target}/"*
echo "Running podman"
cd /var/home/nextcloud
sudo -u nextcloud podman exec -it nextcloud bash -c "/var/www/html/occ groupfolders:scan 1"
cd -
fi

1
home/synapse/.secrets Normal file
View File

@@ -0,0 +1 @@
database-password=EdW2lUOj6kY8Z2ti07wB

1
home/tga/.dyndns Normal file
View File

@@ -0,0 +1 @@
username=tga&password=xpkV4kGDH592WZ394fTv&hostname=gtache.ch

13
home/tga/dyndns.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -o errexit -o pipefail -o noclobber -o nounset -o errtrace -o functrace
update_url=https://infomaniak.com/nic/update
subdomains=(git home komga mail matrix mealie navidrome nextcloud nexus odoo paperless photos pihole torrent wallabag)
data_file="${HOME}/.dyndns"
file="${HOME}/tmp_data.txt"
for subdomain in "${subdomains[@]}"; do
sed "s/gtache.ch/${subdomain}.gtache.ch/" "${data_file}" >| "${file}"
curl -d "@${file}" -X POST "${update_url}"
done
rm -f "${file}"
curl -d "@${data_file}" -X POST "${update_url}"

2
home/wallabag/.secrets Normal file
View File

@@ -0,0 +1,2 @@
database-password=YdBYea47YBCpjhL7ped9
database-root-password=zUMuEkTzOG8CH8VjvLXE