| bin | Add container-based release | |
| config | Initial commit - basic Phoenix app | |
| lib | Add some documentation comments | |
| priv | Implement Nextcloud-compatible endpoints | |
| rel/overlays/bin | Add container-based release | |
| test | Initial commit - basic Phoenix app | |
| .dockerignore | Add container-based release | |
| .formatter.exs | Initial commit - basic Phoenix app | |
| .gitignore | Initial commit - basic Phoenix app | |
| Dockerfile | Add container-based release | |
| LICENSE | Add LICENSE and README | |
| mix.exs | Initial commit - basic Phoenix app | |
| mix.lock | Initial commit - basic Phoenix app | |
| README.md | Fix some wording in the README | |
PodSync
Very simplistic podcast sync based on the Nextcloud GPodder Sync API. Does not do authentication or multiple users.
Tested with:
Usage
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Deploying
Can easily be deployed using Podman/Docker. See the Phoenix deployment guide for other options.
Use bin/build-container-image to build a container image. By default it
builds an image with the tag localhost/pod-sync:<commit-id>. Add -h to see
some more options.
The following environment variables are important:
-
DATABASE_PATHshould be set to a path for the SQLite database file. This should probably be in a volume. -
SECRET_KEY_BASEshould be set to a secret generated usingmix phx.gen.secret -
PORTcan be set to the port to listen on, defaults to4000 -
PHX_HOSTshould specify a hostname for generated URLs, defaults toexample.com