diff --git a/ircradio/templates/index.html b/ircradio/templates/index.html index d805e5f..413e77d 100644 --- a/ircradio/templates/index.html +++ b/ircradio/templates/index.html @@ -88,7 +88,7 @@ var sel_radio_cards = {}; var url_icecast = '{{ settings.icecast2_hostname }}'; var url_album_art = '/assets/art/'; - var ws_url = '{{ url_for('ws', _external=True) }}'; + var ws_url = '{{ settings.ws_url }}'; var icon_play = ` diff --git a/settings.py_example b/settings.py_example index 91face5..9d2afb5 100644 --- a/settings.py_example +++ b/settings.py_example @@ -11,6 +11,7 @@ def bool_env(val): debug = False host = "127.0.0.1" +ws_url = "http://127.0.0.1:2600/ws" port = 2600 timezone = "Europe/Amsterdam"