diff --git a/config.yaml b/config.yaml index 437221a..7a2d8f1 100644 --- a/config.yaml +++ b/config.yaml @@ -2,7 +2,7 @@ name: Folding@home version: 0.8.0 slug: foldingathome description: Run Folding@home to contribute to scientific research -url: https://gitea.bitfire.work/retr0/dont-stop-folding +url: http://deine-gitea-url/dein-benutzername/dont-stop-folding arch: - amd64 - armhf @@ -14,14 +14,25 @@ ports: ports_description: 7396/tcp: Folding@home Web Interface map: - - share:rw + - config:rw options: user: "" team: "247478" passkey: "" power: "medium" + account_token: "" + machine_name: "" +environment: + USER: "{user}" + TEAM: "{team}" + PASSKEY: "{passkey}" + POWER: "{power}" + ACCOUNT_TOKEN: "{account_token}" + MACHINE_NAME: "{machine_name}" schema: user: str? team: str passkey: str? - power: list(light|medium|full) \ No newline at end of file + power: list(light|medium|full) + account_token: str? + machine_name: str? \ No newline at end of file diff --git a/rootfs/etc/s6-overlay/cont-init.d/00-config b/rootfs/etc/s6-overlay/cont-init.d/00-config new file mode 100644 index 0000000..41a87da --- /dev/null +++ b/rootfs/etc/s6-overlay/cont-init.d/00-config @@ -0,0 +1,18 @@ +#!/usr/bin/with-contenv bash +CONFIG_PATH=/config +mkdir -p "$CONFIG_PATH" +if [ ! -f "$CONFIG_PATH/config.xml" ]; then + cat > "$CONFIG_PATH/config.xml" << EOC + + + + + + + + + + +EOC + echo "Config created at $CONFIG_PATH/config.xml" +fi \ No newline at end of file