Skip to content

Commit

Permalink
Merge pull request #26 from dontobi/gpodder2go
Browse files Browse the repository at this point in the history
Minor improvements
  • Loading branch information
oxtyped authored Apr 22, 2024
2 parents 941e783 + d8ea477 commit aa0ce4a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git
.github
*~
Dockerfile
LICENSE
README.md
structure.md
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
target-branch: "main"
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -92,6 +92,7 @@ Add with:
$ docker run -d \
--name gpodder2go \
-p 3005:3005 \
-e NO_AUTH=<true or false> \
-v <data_directory>:/data \
ghcr.io/oxtyped/gpodder2go:main
```
Expand All @@ -105,6 +106,8 @@ services:
image: ghcr.io/oxtyped/gpodder2go:main
ports:
- 3005:3005
environment:
- NO_AUTH=<true or false>
volumes:
- ./gpodder2go:/data
restart: unless-stopped
Expand Down
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
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

0 comments on commit aa0ce4a

Please sign in to comment.