Commit Graph

506 Commits

Author SHA1 Message Date
jo e92be34e2a fix(installer): only setup nginx on first install
Users usually want to setup a ssl certificate for LibreTime. Disabling any nginx config change unless it is the first install should prevent breaking a possible certbot setup.
2023-02-03 14:59:58 +01:00
jo 9a65e08890 fix(installer): print diff on file deployment 2023-02-03 14:59:58 +01:00
jo a5e4d17e20 fix(installer): allow different actions on template_file 2023-02-03 14:59:58 +01:00
jo 3b8638cd15 fix(installer): set home and login when running as postgres
Remove warnings if the current dir is not writable by postgres
2022-12-09 07:33:46 +02:00
jo 1f7852d13b fix(installer): install missing sudo 2022-12-09 07:33:46 +02:00
Jonas L d03fe5bf7d
fix: disable some systemd security features on bionic (#2219)
Fixes #2217
2022-10-10 16:57:56 +02:00
Jonas L e991870e2d
chore: clean unmaintained centos files (#2212)
Fix #1475
2022-10-08 08:07:53 +02:00
jo d10bcbce42 chore(installer): migrate instructions on upgrade 2022-09-15 16:20:37 +02:00
jo dead0a3429 fix(installer): config should not be world readable 2022-09-08 18:57:21 +02:00
jo d338e2ec88 fix(installer): config dir should be read only
Now that liquidsoap does not write any file in /etc/libretime, we can
make it read only.
2022-09-08 18:57:21 +02:00
Jonas L f4b1387e01
fix(shared): install tzdata distibutions package (#2105)
zoneinfo rely on the system tzdata package to work.
2022-09-08 17:50:39 +02:00
Jonas L fb789c323c
fix(installer): simplify distro support notice (#2106) 2022-09-08 17:49:54 +02:00
jo ba73866e47 feat(installer): deploy stream config 2022-09-06 13:21:54 +02:00
jo 2a74649882 feat(api): remove set passwords command 2022-09-06 13:21:54 +02:00
jo fde7a760c6 fix(installer): fix compatibility with bionic
Fixes #2079

- Install python3 based gunicorn packages for bionic
- Fix old filesystem hierarchy paths for bionic
- Enable icecast in /etc/default/icecast2 for bionic
2022-09-01 19:17:33 +02:00
jo cd151da603 fix(installer): only upgrade pip packages if needed 2022-09-01 19:17:33 +02:00
jo c244cc812d fix(api): install gunicorn from pip for bionic
Fixes #2077
2022-09-01 19:17:33 +02:00
Jonas L 2edbf15bf4
feat(worker): rename service and package to libretime-worker (#2065)
BREAKING CHANGE: The `libretime-celery` python package and service was renamed to `libretime-worker`. Make sure to remove the old python package and service.
2022-08-20 08:13:30 +02:00
Jonas L 5367bc8d61
feat(installer): use ed for config update (#2013) 2022-08-01 14:37:19 +02:00
Jonas L e6d24333cb
fix(installer): clean legacy files before copying (#2002) 2022-07-27 09:51:34 +02:00
Jonas L c4bccf16f9
feat(installer): remove allow-restart flag (#1970)
Services management should be handled by the admin. You can use the following command `systemctl restart  libretime.target`
2022-07-17 23:58:51 +02:00
jo 1cb03c35d2 feat(api): listen on unix socket with gunicorn 2022-07-07 10:51:07 +02:00
jo ec45717ccf feat: replace apache2 with nginx + php-fpm
BREAKING CHANGE: The `apache2` webserver has been replaced with `nginx` and `php-fpm`, be sure to uninstall `apache2` and clean related configuration files from your system before upgrading.
2022-07-07 10:51:07 +02:00
jo 2f205544c2 feat: use dedicated 'libretime' user
BREAKING CHANGE: The default `www-data` user has been replaced by a dedicated  `libretime` user to run the services. Be sure to change the ownership of the libretime files.
2022-07-07 10:51:07 +02:00
jo 0bb792d047 feat(installer): load .env file to persistent install config 2022-07-07 10:51:07 +02:00
jo e8fc5cd1c5 feat(installer): rename shared files path to /usr/share/libretime
BREAKING CHANGE: The shared files path changed from `/usr/share/airtime` to `/usr/share/libretime`. The directory must be renamed **before the upgrade procedure**.
2022-06-08 23:23:08 +02:00
jo f7bb6e7592 feat: move storage path setting to configuration file
- change default storage path to /srv/libretime
- remove music dirs table
- use /tmp for testing storage
- storage dir should always have a trailing slash
2022-06-08 23:23:08 +02:00
jo 510e978952 feat: add systemd libretime.target
- add wanted by
- instantly start services in vagrant
2022-06-08 23:23:08 +02:00
jo a9c2271559 feat(installer): post install setup instructions 2022-06-08 23:23:08 +02:00
jo ee98387264 feat(installer): rewrite install script
- remove unused root packages.ini
- write config to yaml file
- allow to set public_url during install
- force icecast start right after package install
- move config file in place at the end of installation

BREAKING CHANGE: The bash installer has been rewritten, the flags and
options changed, please run `./install --help` to get more details.
2022-06-08 23:23:08 +02:00
jo aed6d2f294 feat: change config dir path to /etc/libretime
BREAKING: The configuration directory changed from `/etc/airtime` to
`/etc/libretime`. Please rename your configuration directory accordingly.
2022-06-08 23:23:08 +02:00
jo 8278366899 feat(worker): don't run with a dedicated user
BREAKING: The worker service no longer uses a dedicated `celery` user to run. The old `celery` user can be removed from the system.
2022-05-19 09:35:05 +02:00
jo 137e76ff00 fix: don't set log folder permissions recursivly 2022-05-05 09:42:34 +02:00
jo 21ab07eff8 feat(legacy): change logrotate config deploy path
BREAKING: the legacy logrotate config filepath was changed from `/etc/logrotate.d/airtime-php` to `/etc/logrotate.d/libretime-legacy`
2022-05-05 09:42:34 +02:00
Jonas L 41df76eed0
feat(api): replace uwsgi with gunicorn (#1785)
Related to #1719

BREAKING: The uwsgi packages and configuration files (`/etc/airtime/libretime-api.ini`) should be removed from the system.
2022-04-25 16:09:19 +02:00
Jonas L 95a7411c0c
feat: improve apache configuration (#1784)
- merge php config in apache config
- remove deprecated php config
- remove old apache config
- use dedicated log files for libretime vhost
- change template variables format

BREAKING: The apache configuration file has been updated and renamed. You must remove the old configuration files `/etc/apache2/sites-available/airtime*` file from the system.

BREAKING: The php configuration file has been merged in the apache configuration. You need to remove the `/etc/php/*/apache2/conf.d/airtime.ini` file from the system.
2022-04-25 12:46:30 +02:00
Jonas L dc92661c49
chore(api): move uswgi config in api/install (#1781) 2022-04-21 07:14:35 +02:00
Jonas L 5cb4b5e9e5
chore(legacy): move logrotate config in legacy/install (#1780) 2022-04-21 07:11:16 +02:00
jo c7ebeee114 fix(installer): always install fresh packages
reorder apt-get update commands to be sure we install fresh packages.
2022-04-11 11:52:55 +02:00
Kyle Robbertze f048d32ec2 fix(installer): install software-properties-common when required 2022-04-11 11:52:55 +02:00
Jonas L fef38fb131
chore: rename api_client to api-client (#1727) 2022-04-04 10:25:38 +02:00
Kyle Robbertze 38efa9cd31 fix(installer): remove /var/tmp/airtime reference 2022-03-28 21:06:43 +02:00
Kyle Robbertze 2ca883334a
fix(installer): remove rougue reference to /var/log/airtime (#1710) 2022-03-28 20:56:14 +02:00
Kyle Robbertze 9ba17fba4f fix(installer): test and create correct log path 2022-03-28 17:18:40 +02:00
Jonas L 926f18aec8
fix: upgrade python packages during install (#1707) 2022-03-28 15:19:38 +02:00
Kyle Robbertze e8fb17a653 fix: add PPA for newer liquidsoap version on Ubuntu
Fixes: #1689
2022-03-28 11:11:44 +02:00
jo 9af717ef7f feat(api): remove admin app and static files
- remove django admin app,
- disable static files for production deployment,
- keep the rest framework browsable api in dev mode.
2022-03-02 22:03:56 +02:00
Jonas L 2d451aa951
fix: change celery user in worker service file (#1638) 2022-02-25 15:53:32 +02:00
jo 9b6d657fd6 feat(worker): load config using shared helpers
BREAKING CHANGE: The worker `RMQ_CONFIG_FILE` environement variable has
been renamed to `LIBRETIME_CONFIG_FILEPATH`. In addition the systemd
working directory for the worker has changed from `/srv/airtime` to
`/var/lib/libretime/worker`.
2022-02-25 11:48:57 +02:00
Jonas L c3d2a4dfab
feat: remove unused ubuntu ppa (#1591)
Fixes #1573
2022-02-11 15:34:32 +02:00