From 1e70779191cbc625fe73a97cb9362e426261d015 Mon Sep 17 00:00:00 2001 From: dontobi Date: Fri, 19 Apr 2024 07:31:38 +0200 Subject: [PATCH 1/3] Dependabot, ARM64 Build and .dockerignore --- .dockerignore | 7 +++++++ .github/dependabot.yml | 8 ++++++++ .github/workflows/docker-publish.yaml | 1 + 3 files changed, 16 insertions(+) create mode 100644 .dockerignore create mode 100644 .github/dependabot.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9117179 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +.github +*~ +Dockerfile +LICENSE +README.md +structure.md \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..257a9e2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + target-branch: "main" diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index c3ad80d..9f443a1 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -76,6 +76,7 @@ jobs: with: context: . push: ${{ github.event_name != 'pull_request' }} + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha From 52fd06344e339b5d23f62cc36b3f7e71f6a5acf0 Mon Sep 17 00:00:00 2001 From: Tobias 'dontobi' Schug Date: Fri, 19 Apr 2024 10:25:12 +0200 Subject: [PATCH 2/3] Typo and NO_AUTH env variable --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a58063..7f04c6c 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Right now it appears that the gpodder client doesn't fully support auth (see: ht In order to allow gpodder client access to the gpodder server, please run `gpodder2go` in non-auth mode. ``` -$ gpodder2go server --no-auth +$ gpodder2go serve --no-auth ``` **Note**: This will allow anyone with access to retrieve your susbcriptions data and list. Please take the necessary steps to secure your instance and data. @@ -92,6 +92,7 @@ Add with: $ docker run -d \ --name gpodder2go \ -p 3005:3005 \ +-e NO_AUTH= \ -v :/data \ ghcr.io/oxtyped/gpodder2go:main ``` @@ -105,6 +106,8 @@ services: image: ghcr.io/oxtyped/gpodder2go:main ports: - 3005:3005 + environment: + - NO_AUTH= volumes: - ./gpodder2go:/data restart: unless-stopped From d8ea4778fb7f21df6860082b017bcae8e31e441c Mon Sep 17 00:00:00 2001 From: Tobias 'dontobi' Schug Date: Fri, 19 Apr 2024 10:26:17 +0200 Subject: [PATCH 3/3] NO_AUTH env variable --- entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f76dde5..7903ae1 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,4 +9,8 @@ if [ ! -f "/data/VERIFIER_SECRET_KEY" ]; then cat /dev/urandom | head -c 30 | base64 > /data/VERIFIER_SECRET_KEY echo "... VERIFIER_SECRET_KEY initialized" fi -VERIFIER_SECRET_KEY="$(cat /data/VERIFIER_SECRET_KEY)" /gpodder2go serve --addr "${ADDR:-0.0.0.0:3005}" \ No newline at end of file +if [ "$NO_AUTH" == true ]; then + VERIFIER_SECRET_KEY="$(cat /data/VERIFIER_SECRET_KEY)" /gpodder2go serve --addr "${ADDR:-0.0.0.0:3005}" --no-auth +else + VERIFIER_SECRET_KEY="$(cat /data/VERIFIER_SECRET_KEY)" /gpodder2go serve --addr "${ADDR:-0.0.0.0:3005}" +fi