-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added s3 hosting initial capabilities without streaming capabilities. * Added s3 hosting initial capabilities without streaming capabilities. * move to download_location instead of status * Also save podcast file type * Reformatted files * Fixed block on * Added s3 backend * Fixed local mode * Added docs for S3
- Loading branch information
1 parent
85c0105
commit 5f0ea21
Showing
55 changed files
with
1,402 additions
and
376 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# S3 configuration | ||
|
||
So you want to use an S3 compatible storage backend to e.g. host files central or save costs for storage provisioning in the cloud? PodFetch now also supports S3 configuration. | ||
This is also valuable if you want to use a self-hosted MinIO instance and don't want to map and mount volumes around. | ||
It is currently necessary that you have your files in S3 configured readonly so people can stream them from there. | ||
|
||
|
||
| Environment variable | Description | Default | | ||
|----------------------|---------------------------------------|-----------------------| | ||
| `S3_URL` | The URL of the S3 service. | http://localhost:9000 | | ||
| `S3_REGION` | The region of the S3 service. | eu-west-1 | | ||
| `S3_ACCESS_KEY` | The access key of the S3 service. | / | | ||
| `S3_SECRET_KEY` | The secret key of the S3 service. | / | | ||
| `S3_PROFILE` | The profile of the S3 service. | / | | ||
| `S3_SECURITY_TOKEN` | The security token of the S3 service. | / | | ||
| `S3_SESSION_TOKEN` | The session token of the S3 service. | / | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
migrations/postgres/2025-01-10-163832_download_location/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE podcast_episodes ADD COLUMN local_image_url TEXT; | ||
ALTER TABLE podcast_episodes ADD COLUMN local_url TEXT; | ||
|
||
ALTER TABLE podcasts DROP COLUMN download_location; | ||
ALTER TABLE podcast_episodes DROP COLUMN download_location; |
12 changes: 12 additions & 0 deletions
12
migrations/postgres/2025-01-10-163832_download_location/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Your SQL goes here | ||
ALTER TABLE podcast_episodes DROP COLUMN local_image_url; | ||
ALTER TABLE podcast_episodes DROP COLUMN local_url; | ||
|
||
|
||
ALTER TABLE podcasts ADD COLUMN download_location TEXT; | ||
ALTER TABLE podcast_episodes ADD COLUMN download_location TEXT; | ||
|
||
UPDATE podcasts SET download_location = 'Local'; | ||
UPDATE podcast_episodes SET download_location = 'Local' WHERE status = 'D'; | ||
|
||
ALTER TABLE podcast_episodes DROP COLUMN status; |
6 changes: 6 additions & 0 deletions
6
migrations/sqlite/2025-01-10-163832_download_location/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE podcast_episodes ADD COLUMN local_image_url TEXT; | ||
ALTER TABLE podcast_episodes ADD COLUMN local_url TEXT; | ||
|
||
ALTER TABLE podcasts DROP COLUMN download_location; | ||
ALTER TABLE podcast_episodes DROP COLUMN download_location; |
12 changes: 12 additions & 0 deletions
12
migrations/sqlite/2025-01-10-163832_download_location/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Your SQL goes here | ||
ALTER TABLE podcast_episodes DROP COLUMN local_image_url; | ||
ALTER TABLE podcast_episodes DROP COLUMN local_url; | ||
|
||
|
||
ALTER TABLE podcasts ADD COLUMN download_location TEXT; | ||
ALTER TABLE podcast_episodes ADD COLUMN download_location TEXT; | ||
|
||
UPDATE podcasts SET download_location = 'Local'; | ||
UPDATE podcast_episodes SET download_location = 'Local' WHERE status = 'D'; | ||
|
||
ALTER TABLE podcast_episodes DROP COLUMN status; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.