Wykres commitów

605 Commity (741ab533b1acef1af02ee6ba8e9a26e1f9c8c346)

Autor SHA1 Wiadomość Data
Eliot Berriot 1955005a4f
Moved commen nginx configuration in a dedicated snippet 2018-03-04 16:58:37 +01:00
Eliot Berriot eef2ff3f9a
Fixed broken daphne and removed useless templates 2018-03-04 16:05:41 +01:00
Eliot Berriot 25e263d474
Merge tag '0.6' into develop
0.6 (2018-03-04)
----------------

Features:

- Basic activity stream for listening and favorites (#23)
- Switched to django-channels and daphne for serving HTTP and websocket (#34)

Upgrades notes
**************

This version contains breaking changes in the way funkwhale is deployed,
please read the notes carefully.

Instance timeline
^^^^^^^^^^^^^^^^^

A new "Activity" page is now available from the sidebar, where you can
browse your instance activity. At the moment, this includes other users
favorites and listening, but more activity types will be implemented in the
future.

Internally, we implemented those events by following the Activity Stream
specification, which will help us to be compatible with other networks
in the long-term.

A new settings page has been added to control the visibility of your activity.
By default, your activity will be browsable by anyone on your instance,
but you can switch to a full private mode where nothing is shared.

The setting form is available in your profile.

Switch from gunicorn to daphne
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This release include an important change in the way we serve the HTTP API.
To prepare for new realtime features and enable websocket support in Funkwhale,
we are now using django-channels and daphne to serve HTTP and websocket traffic.

This replaces gunicorn and the switch should be easy assuming you
follow the upgrade process described bellow.

If you are using docker, please remove the command instruction inside the
api service, as the up-to-date command is now included directly in the image
as the default entry point:

.. code-block:: yaml

    api:
      restart: unless-stopped
      image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
      command: ./compose/django/gunicorn.sh  # You can remove this line

On non docker setups, you'll have to update the [Service] block of your
funkwhale-server systemd unit file to launch the application server using daphne instead of gunicorn.

The new configuration should be similar to this:

.. code-block:: ini

    [Service]
    User=funkwhale
    # adapt this depending on the path of your funkwhale installation
    WorkingDirectory=/srv/funkwhale/api
    EnvironmentFile=/srv/funkwhale/config/.env
    ExecStart=/usr/local/bin/daphne -b ${FUNKWHALE_API_IP} -p ${FUNKWHALE_API_PORT} config.asgi:application

Ensure you update funkwhale's dependencies as usual to install the required
packages.

On both docker and non-docker setup, you'll also have to update your nginx
configuration for websocket support. Ensure you have the following blocks
included in your virtualhost file:

.. code-block:: txt

    map $http_upgrade $connection_upgrade {
        default upgrade;
        ''      close;
    }

    server {
        ...
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }

Remember to reload your nginx server after the edit.
2018-03-04 15:17:02 +01:00
Eliot Berriot 37b6dd406f
Merge branch 'release/0.6' 2018-03-04 15:16:55 +01:00
Eliot Berriot 6011cf2098
Version bump and changelog 2018-03-04 15:16:35 +01:00
Eliot Berriot 1bbfa8f70b Merge branch 'channels' into 'develop'
Channels and instance timeline

See merge request funkwhale/funkwhale!74
2018-03-04 14:05:22 +00:00
Eliot Berriot c0ff34e8b3
Fixed failing tests 2018-03-03 23:23:42 +01:00
Eliot Berriot 120dda2c75
Sample updates, changelog and documentation for channels and activity 2018-03-03 23:18:33 +01:00
Eliot Berriot 26b2d3b0b2
Added setting form to manage privacy level 2018-03-03 12:40:01 +01:00
Eliot Berriot 2c79418d81
Moved backend error handling in axios 2018-03-03 12:38:11 +01:00
Eliot Berriot f9786d4b45
Remove batch refresh logic when not on batch detail 2018-03-03 12:37:50 +01:00
Eliot Berriot 1800f7ad17
API endpoint for updating privacy 2018-03-03 11:20:21 +01:00
Eliot Berriot 7f7a62cfa2
Replaced gunicorn with daphne 2018-03-03 10:52:48 +01:00
Eliot Berriot 8dea9130af
Smaller docker image 2018-03-03 10:05:39 +01:00
Eliot Berriot ce3af5194f
Minor fixes to docker setup 2018-03-02 00:14:55 +01:00
Eliot Berriot 6e6d874f3a
Websocket opening logic 2018-03-02 00:14:40 +01:00
Eliot Berriot 88e6808155
Activity components for timeline 2018-03-02 00:14:23 +01:00
Eliot Berriot e231b71701
Timeline view 2018-03-02 00:14:08 +01:00
Eliot Berriot e319f5933e
Store for instance events 2018-03-02 00:13:45 +01:00
Eliot Berriot 40350f0555
Redraw ago datetime every minute 2018-03-01 23:46:32 +01:00
Eliot Berriot 2d12c56b90
Username component 2018-03-01 23:45:46 +01:00
Eliot Berriot a6da10be41
API refinements for activity stream 2018-03-01 23:41:51 +01:00
Eliot Berriot d509c090d3
Basic working poc with favorites send over websocket 2018-03-01 21:51:20 +01:00
Eliot Berriot e490284511
Use our new event system for track favorites 2018-03-01 20:38:48 +01:00
Eliot Berriot dd5881f2c6
Founndations for real-time event serialization/subscription/broadcasting 2018-03-01 20:38:20 +01:00
Eliot Berriot fd7c1e5dd8
Added privacy level for user 2018-03-01 20:36:29 +01:00
Eliot Berriot 691665e3cf
Activity stream representations for user and favorites 2018-03-01 18:38:32 +01:00
Eliot Berriot 93e4a4f123
Added FUNWHALE_URL setting to use in activity stream in representations 2018-03-01 18:38:32 +01:00
Eliot Berriot 5c2ddc56c4
Basic channels middleware for token auth 2018-03-01 18:38:31 +01:00
Eliot Berriot 498aa1137b
Initial channels integration 2018-03-01 18:38:31 +01:00
Eliot Berriot 63620ede64
Merge tag '0.5.4' into develop
0.5.4 (2018-02-28)
------------------

Features:

- Now stop running radio when clearing queue (#98)

Bugfixes:

- Fixed queue skipping tracks (#91)
- Now loop properly on queue when we only have one track (#95)
2018-02-28 19:29:55 +01:00
Eliot Berriot 4530e4f428
Merge branch 'release/0.5.4' 2018-02-28 19:29:44 +01:00
Eliot Berriot 3b6d474d69
Changelog and version bump 2018-02-28 19:29:31 +01:00
Eliot Berriot ffc77f9e89 Merge branch '92-import-default' into 'develop'
Import form improvements

See merge request funkwhale/funkwhale!73
2018-02-28 18:23:58 +00:00
Eliot Berriot b461149ac0
Moved step navigation buttons on top of import widget, see #78 2018-02-28 19:21:44 +01:00
Eliot Berriot 7561f4dddf
Prettier file upload form 2018-02-28 19:21:06 +01:00
Eliot Berriot 799cc01964
Search by track on import is back 2018-02-28 19:03:40 +01:00
Eliot Berriot 46b9c6a1c8
Added "mix" to the list of highlighted keywords in import 2018-02-28 19:03:12 +01:00
Eliot Berriot 3db2f380d7 Merge branch '95-looping-one-track' into 'develop'
Fix #95: Now loop properly on queue when we only have one track

Closes #95

See merge request funkwhale/funkwhale!72
2018-02-28 17:46:51 +00:00
Eliot Berriot 4eb1d458d5
Fix #95: Now loop properly on queue when we only have one track 2018-02-28 18:44:23 +01:00
Eliot Berriot 8635881ad4 Merge branch '98-stop-radio-clear' into 'develop'
Resolve "Stop radio when clearing track"

Closes #98

See merge request funkwhale/funkwhale!71
2018-02-28 17:18:47 +00:00
Eliot Berriot f40eefcd6a
Fix #98: Now stop running radio when clearing queue 2018-02-28 18:16:25 +01:00
Eliot Berriot e65606fd9d
Throttle track progress for better performance 2018-02-28 18:13:47 +01:00
Eliot Berriot bb1cfd56f9 Merge branch '91-queue-skip-track' into 'develop'
Fix #91: queue skipping tracks

Closes #91

See merge request funkwhale/funkwhale!70
2018-02-28 17:09:49 +00:00
Eliot Berriot af11b735d8
Fix #91: queue skipping tracks 2018-02-28 17:57:37 +01:00
Eliot Berriot 2825337860
Fixed broken player track url 2018-02-27 23:38:31 +01:00
Eliot Berriot 48bd450efb
Merge tag '0.5.3' into develop
0.5.3 (2018-02-27)
------------------

Features:

- Added admin interface for radios, track files, favorites and import requests (#80)
- Added basic instance stats on /about (#82)
- Search now unaccent letters for queries like "The Dø" or "Björk" yielding more results (#81)

Bugfixes:

- Always use username in sidebar (#89)
- Click event outside of player icons (#83)
- Fixed broken import because of missing transaction
- Now always load next radio track on last queue track ended (#87)
- Now exclude tracks without file from radio candidates (#88)
- skip to next track properly on 40X errors (#86)

Other:

- Switched to towncrier for changelog management and compilation
2018-02-27 23:10:48 +01:00
Eliot Berriot 98e5fdeb54
Merge branch 'release/0.5.3' 2018-02-27 23:10:43 +01:00
Eliot Berriot 41404a5988
Version bump and changelog 2018-02-27 23:10:23 +01:00
Eliot Berriot ce45b252cf Merge branch '80-admins' into 'develop'
Fixed #80: Added admin interface for radios, track files, favorites...

Closes #80

See merge request funkwhale/funkwhale!69
2018-02-27 22:03:53 +00:00