Proxy podcast audio from publishers on request
Browsers stream episode audio from the publisher by default. For
publishers they cannot play directly (CORS, mixed content), the
administrator can enable podcast_audio_proxy_enabled (admin Settings,
FURU_PODCAST_AUDIO_PROXY_ENABLED). The endpoints live in a new app at
/api/podcasts:
- GET /episodes/{episode_id}/audio streams an episode of the signed-in
account. The URL comes from the account's catalog, never from the
request. Requests go through SafeHttp with one sanitized byte Range and
no client headers; 200/206/416 pass through, only audio content types
are served, with nosniff and a sandbox CSP, and responses stop at 1 GiB
or 4 hours.
- GET /episodes/{episode_id}/source returns the publisher URL and, when
enabled, the proxy URL.
- POST /{podcast_id}/refresh refreshes one subscribed feed now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bf9a6abc3f
commit
2c0c3d21aa
12 files changed
+1164
-5
No files matched your search
+23
-1
@@ -1167,6 +1167,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="panel settings-section settings-section-full settings-podcasts" id="settings-podcasts">
|
||||
<div class="panel-head">
|
||||
<div class="panel-title">
|
||||
<strong>Podcasts</strong>
|
||||
<span>Episode audio comes from the publisher</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings-grid">
|
||||
<div class="setting-toggle settings-wide">
|
||||
<label>
|
||||
<span>Podcast audio proxy</span>
|
||||
<span class="source-pill" :class="sourceClass('podcast_audio_proxy_enabled')" x-text="settingSource('podcast_audio_proxy_enabled')"></span>
|
||||
</label>
|
||||
<div class="setting-toggle-row">
|
||||
<span x-text="settingsDraft.podcast_audio_proxy_enabled ? 'Stream through this server when needed' : 'Browsers stream from the publisher'"></span>
|
||||
<input type="checkbox" x-model="settingsDraft.podcast_audio_proxy_enabled" />
|
||||
</div>
|
||||
<div class="setting-help">By default the browser loads episode audio directly from the publisher. Enable the proxy for publishers the browser cannot play directly (missing CORS, plain HTTP on an HTTPS site). The server then fetches the audio from the publisher on demand and passes it through without storing it; it only connects to public addresses.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel settings-section settings-section-narrow settings-similarity-status">
|
||||
<div class="panel-head">
|
||||
@@ -2179,7 +2200,8 @@ function adminV2() {
|
||||
download_proxies: [],
|
||||
torrent_proxy_id: '',
|
||||
youtube_proxy_id: '',
|
||||
youtube_cookie_id: ''
|
||||
youtube_cookie_id: '',
|
||||
podcast_audio_proxy_enabled: false
|
||||
},
|
||||
settingsProbe: { status: 'idle', ok: false },
|
||||
settingsProbeLoading: false,
|
||||
|
||||
Reference in new issue
Block a user