Azuracast: Access to edit entire Liquidsoap config?

Created on 15 Jul 2019  路  9Comments  路  Source: AzuraCast/AzuraCast

Would it be possible to somehow edit the the entire Liquidsoap config not just the part under "Advanced Custom Conifguration"? Right now the only way is to change the settings on the admin website but we'd need direct access to the file, be able to edit it and restart the server.

Background: due to some long running issues with the Liquidsoap config (e.g., https://github.com/savonet/liquidsoap/issues/746) we'd like to help with experimenting. Maybe we can find a good scripting, which can then be merged in a future version of AzuraCast.

question wontfix

All 9 comments

It's not something that I'd recommend for production but for those experiments you can use the docker-compose.override.yml to mount your custom liquidsoap config file over the existing one in read-only mode. That way AzuraCast can't overwrite the file and you can experiment with it.

@Vaalyn thanks. It seems that I managed to mount a custom LS config with the following override file. Just like you suggested. I can see changes to the file in the logs view of the Azuracast admin page. But I see no effects of it. First of all, Azuracast doesn't detect the changes (doesn't want me to restart the backend). And when I restart the "Auto DJ Service", Azuracast won't apply the changes to the file, it will restart with the original Liquidsoap config instead. Do you know how I could force Azuracast to load the edited config file?

services:
  web:
    volumes:
      - ./liquidsoap_custom.liq:/var/azuracast/stations/blaradio/config/liquidsoap.liq 

That's most likely happening because your custom file is mounted as read/write. You need to mount it as read-only so that AzuraCast can't generate a new one.

You can do this by adding :ro at the end of the line:

services:
  web:
    volumes:
      - ./liquidsoap_custom.liq:/var/azuracast/stations/blaradio/config/liquidsoap.liq:ro

@Vaalyn hmm, still not working. Like I said, the liq file on the admin page https://[server_url]/station/1/logs shows the changes but they are ineffective even after backend restart. If Azuracast generates a new LS config, it should be visible there as well, no? Btw, I simply did docker-compose down and up after adding ro to the override file.

@Vaalyn just checked and I see no attempt by AzuraCast to overwrite /var/azuracast/stations/blaradio/config/liquidsoap.liq. It seems to me that AzuraCast ignores this file completely (except the display in the logs view) and generates the configuration based on the settings on the admin page. What do you think?

@gammaw No, it's definitely writing to that file and instructing Liquidsoap to reference it. This is a unique situation that I'm not sure AzuraCast is well suited for with its current featureset, but I'm not completely sure why this workaround isn't working.

@gammaw @SlvrEagle23 I think I found out why LS is ignoring the config. It's only mounted in the web container but it also needs to be mounted in the stations container.

@Vaalyn thanks, it works perfectly! I started to play around with the Liquidsoap config and it seems that I have promising results (with respect to fading issues). I'll have to test it in details though.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

susl16c picture susl16c  路  3Comments

frozenplaya picture frozenplaya  路  4Comments

Vaalyn picture Vaalyn  路  4Comments

verdantsquare picture verdantsquare  路  3Comments

susl16c picture susl16c  路  3Comments