From e5effe4089d5855ca905e7dd75071e91a4e6ef68 Mon Sep 17 00:00:00 2001 From: bes-r Date: Wed, 27 May 2026 00:08:55 +0200 Subject: [PATCH] feat: nieuwe boilerplates + hardcoded waarden variabel gemaakt --- apps/forgejo/files/compose.yaml | 4 ++-- apps/forgejo/template.json | 21 +++++++++++++++++++++ apps/plex/files/compose.yaml | 4 ++-- apps/plex/template.json | 21 +++++++++++++++++++++ apps/speedtest-tracker/files/compose.yaml | 4 ++-- apps/speedtest-tracker/template.json | 21 +++++++++++++++++++++ apps/syncthing/files/compose.yaml | 4 ++-- apps/syncthing/template.json | 21 +++++++++++++++++++++ apps/unifi-network/files/compose.yaml | 4 ++-- apps/unifi-network/template.json | 16 ++++++++++++++++ 10 files changed, 110 insertions(+), 10 deletions(-) diff --git a/apps/forgejo/files/compose.yaml b/apps/forgejo/files/compose.yaml index 643e5be..f19ac12 100644 --- a/apps/forgejo/files/compose.yaml +++ b/apps/forgejo/files/compose.yaml @@ -6,8 +6,8 @@ services: - "<< port_web >>:3000" - "<< port_ssh >>:22" environment: - - USER_UID=1000 - - USER_GID=1000 + - USER_UID=<< puid >> + - USER_GID=<< pgid >> - FORGEJO__server__SSH_PORT=<< port_ssh >> - TZ=<< timezone >> volumes: diff --git a/apps/forgejo/template.json b/apps/forgejo/template.json index 5e1dd23..9d97cc1 100644 --- a/apps/forgejo/template.json +++ b/apps/forgejo/template.json @@ -34,6 +34,27 @@ } ] }, + { + "title": "Gebruiker", + "items": [ + { + "name": "puid", + "type": "int", + "title": "PUID", + "default": 1000, + "required": true, + "description": "User ID van de systeemgebruiker (id -u)" + }, + { + "name": "pgid", + "type": "int", + "title": "PGID", + "default": 1000, + "required": true, + "description": "Group ID van de systeemgebruiker (id -g)" + } + ] + }, { "title": "Poorten", "items": [ diff --git a/apps/plex/files/compose.yaml b/apps/plex/files/compose.yaml index e3b377e..37afbd8 100644 --- a/apps/plex/files/compose.yaml +++ b/apps/plex/files/compose.yaml @@ -6,8 +6,8 @@ services: - "<< port >>:32400" environment: - TZ=<< timezone >> - - PUID=1000 - - PGID=1000 + - PUID=<< puid >> + - PGID=<< pgid >> <% if plex_claim %> - PLEX_CLAIM=<< plex_claim >> <% endif %> diff --git a/apps/plex/template.json b/apps/plex/template.json index 6a2ab02..558ea25 100644 --- a/apps/plex/template.json +++ b/apps/plex/template.json @@ -42,6 +42,27 @@ } ] }, + { + "title": "Gebruiker", + "items": [ + { + "name": "puid", + "type": "int", + "title": "PUID", + "default": 1000, + "required": true, + "description": "User ID van de systeemgebruiker (id -u)" + }, + { + "name": "pgid", + "type": "int", + "title": "PGID", + "default": 1000, + "required": true, + "description": "Group ID van de systeemgebruiker (id -g)" + } + ] + }, { "title": "Media", "items": [ diff --git a/apps/speedtest-tracker/files/compose.yaml b/apps/speedtest-tracker/files/compose.yaml index 0b55822..3f0aa8f 100644 --- a/apps/speedtest-tracker/files/compose.yaml +++ b/apps/speedtest-tracker/files/compose.yaml @@ -6,8 +6,8 @@ services: - "<< port >>:80" environment: - TZ=<< timezone >> - - PUID=1000 - - PGID=1000 + - PUID=<< puid >> + - PGID=<< pgid >> - APP_KEY=<< app_key >> - DB_CONNECTION=sqlite volumes: diff --git a/apps/speedtest-tracker/template.json b/apps/speedtest-tracker/template.json index 217f564..cedc133 100644 --- a/apps/speedtest-tracker/template.json +++ b/apps/speedtest-tracker/template.json @@ -41,6 +41,27 @@ } ] }, + { + "title": "Gebruiker", + "items": [ + { + "name": "puid", + "type": "int", + "title": "PUID", + "default": 1000, + "required": true, + "description": "User ID van de systeemgebruiker (id -u)" + }, + { + "name": "pgid", + "type": "int", + "title": "PGID", + "default": 1000, + "required": true, + "description": "Group ID van de systeemgebruiker (id -g)" + } + ] + }, { "title": "Beveiliging", "items": [ diff --git a/apps/syncthing/files/compose.yaml b/apps/syncthing/files/compose.yaml index bdb3cde..58e89c2 100644 --- a/apps/syncthing/files/compose.yaml +++ b/apps/syncthing/files/compose.yaml @@ -8,8 +8,8 @@ services: - "<< sync_port >>:22000/udp" environment: - TZ=<< timezone >> - - PUID=1000 - - PGID=1000 + - PUID=<< puid >> + - PGID=<< pgid >> volumes: - << data_dir >>/<< service_name >>/config:/config - << sync_dir >>:/data diff --git a/apps/syncthing/template.json b/apps/syncthing/template.json index 12ad339..de4acf9 100644 --- a/apps/syncthing/template.json +++ b/apps/syncthing/template.json @@ -57,6 +57,27 @@ "required": true } ] + }, + { + "title": "Gebruiker", + "items": [ + { + "name": "puid", + "type": "int", + "title": "PUID", + "default": 1000, + "required": true, + "description": "User ID van de systeemgebruiker (id -u)" + }, + { + "name": "pgid", + "type": "int", + "title": "PGID", + "default": 1000, + "required": true, + "description": "Group ID van de systeemgebruiker (id -g)" + } + ] } ] } diff --git a/apps/unifi-network/files/compose.yaml b/apps/unifi-network/files/compose.yaml index fc7673d..174bb2a 100644 --- a/apps/unifi-network/files/compose.yaml +++ b/apps/unifi-network/files/compose.yaml @@ -16,8 +16,8 @@ services: ports: - "<< port_ui >>:8443" - "<< port_inform >>:8080" - - "3478:3478/udp" - - "10001:10001/udp" + - "<< port_stun >>:3478/udp" + - "<< port_discovery >>:10001/udp" depends_on: - << service_name >>-mongo restart: unless-stopped diff --git a/apps/unifi-network/template.json b/apps/unifi-network/template.json index 4d585ee..bca8882 100644 --- a/apps/unifi-network/template.json +++ b/apps/unifi-network/template.json @@ -34,6 +34,22 @@ "required": true, "description": "Poort waarop Unifi-apparaten inchecken. Moet bereikbaar zijn voor alle access points en switches." }, + { + "name": "port_stun", + "type": "int", + "title": "STUN poort (UDP)", + "default": 3478, + "required": true, + "description": "Gebruikt voor NAT traversal. Vereist voor correct functioneren van Unifi-apparaten." + }, + { + "name": "port_discovery", + "type": "int", + "title": "Discovery poort (UDP)", + "default": 10001, + "required": true, + "description": "Gebruikt om Unifi-apparaten op het lokale netwerk automatisch te ontdekken." + }, { "name": "data_dir", "type": "str",