forked from ericfrederich/docker-ampache
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Hi there.
I've deployed ampache and caddy using docker compose successfully.
Ampache works from its Web UI, however It doesn't work when trying to play/stream through any Subsonic API-based Android App. I only can browse songs, albums, etc.
My config is:
- Ampache Docker Compose: I've used the same docker-compose.yml available in this repo.
- Caddyfile
{
http_port 8080
https_port 8443
log {
output file /logs/caddy.log
}
}
*.my-fqdn:8443 {
log
tls {
dns duckdns {env.DNS_PROVIDER_TOKEN}
}
@ampache host ampache.my-fqdn
handle @ampache {
reverse_proxy ampache:80
}
}
- SubsonicAPI app tested:
- Substream - I can browse songs but I can not play/stream. Not error.
- Ultrasonic - I can browse songs but I can not play/stream because when clicking in play, It stands in "buffering" and doesn't stop.
I've tried next changes without success:
- Update the
Caddyfile:
{
http_port 8080
https_port 8443
log {
output file /logs/caddy.log
}
}
*.my-fqdn:8443 {
log
tls {
dns duckdns {env.DNS_PROVIDER_TOKEN}
}
@ampache host ampache.my-fqdn
handle @ampache {
# Rewrite rules for Subsonic backend
@rest path_regexp rest ^/rest/(.*).view$
rewrite @rest /rest/index.php?action={re.rest.1}
@rest-fake path_regexp rest-fake ^/rest/fake/(.+)$
rewrite @rest-fake /play/{re.rest-fake.1}
# Rewrite rule for Channels
@channel path_regexp channel ^/channel/([0-9]+)/(.*)$
rewrite @channel /channel/index.php?channel={re.channel.1}&target={re.channel.2}
reverse_proxy ampache:80
}
}
- Change the Ampache configuration using Ampache Web UI:
Preferences > Options > Subsonic > Force Subsonic streams to downloadfromOfftoOn.Preferences > Streaming > Enable URL RewritingfromOfftoOn.Preferences > Streaming > Use an alternative playback action for streaming if you have issues with playing musicfromOfftoOn.
Also I've added my existing Navidrome proxied by the same Caddy Proxy to Ultrasonic app, I've disabled Jukebox by Default in Ultrasonic configuration and Ultrasonic app has worked smoothly.
I don't know what else to try. I appreciate your support and ideas on this.
Regards.
Metadata
Metadata
Assignees
Labels
No labels
