mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
ampache: update to 5.5.1.
add note about upgrading from 4.x.x to 5.x.x devendor nginx config, upstream has instructions for a bunch of different webservers in their wiki
This commit is contained in:
parent
5908c220a8
commit
8affb57ba0
3 changed files with 10 additions and 86 deletions
5
srcpkgs/ampache/INSTALL.msg
Normal file
5
srcpkgs/ampache/INSTALL.msg
Normal file
|
@ -0,0 +1,5 @@
|
|||
WARNING: There have been breaking changes from ampache 4.x.x to 5.x.x
|
||||
|
||||
Be sure to check the upstream documentation and make necessary changes:
|
||||
|
||||
https://github.com/ampache/ampache/wiki/Ampache-next-Changes
|
|
@ -1,80 +0,0 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name FQDN;
|
||||
charset utf-8;
|
||||
|
||||
root PATH;
|
||||
index index.php;
|
||||
|
||||
# Rewrite rule for Subsonic backend
|
||||
if ( !-d $request_filename ) {
|
||||
rewrite ^/rest/(.*).view$ /rest/index.php?action=$1 last;
|
||||
rewrite ^/rest/fake/(.+)$ /play/$1 last;
|
||||
}
|
||||
|
||||
# Rewrite rule for Plex backend
|
||||
if ( !-d $request_filename ) {
|
||||
rewrite ^/plex/(.*)$ /plex/index.php?action=$1 last;
|
||||
}
|
||||
|
||||
# Rewrite rule for Channels
|
||||
if (!-d $request_filename){
|
||||
rewrite ^/channel/([0-9]+)/(.*)$ /channel/index.php?channel=$1&target=$2 last;
|
||||
}
|
||||
|
||||
# Beautiful URL Rewriting
|
||||
rewrite ^/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/name/(.*)$ /play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&name=$5 last;
|
||||
rewrite ^/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/name/(.*)$ /play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&name=$7 last;
|
||||
location /play {
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^/play/art/([^/]+)/([^/]+)/([0-9]+)/thumb([0-9]*)\.([a-z]+)$ /image.php?object_type=$2&object_id=$3&auth=$1;
|
||||
break;
|
||||
}
|
||||
|
||||
rewrite ^/([^/]+)/([^/]+)(/.*)?$ /play/$3?$1=$2;
|
||||
rewrite ^/(/[^/]+|[^/]+/|/?)$ /play/index.php last;
|
||||
break;
|
||||
}
|
||||
|
||||
location /rest {
|
||||
limit_except GET POST {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
location /plex {
|
||||
limit_except GET POST {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
location ^~ /bin/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ /config/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location / {
|
||||
limit_except GET POST HEAD{
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ ^/.*.php {
|
||||
# PHP config...
|
||||
}
|
||||
|
||||
# Rewrite rule for WebSocket
|
||||
location /ws {
|
||||
rewrite ^/ws/(.*) /$1 break;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://127.0.0.1:8100/;
|
||||
}
|
||||
}
|
|
@ -1,21 +1,20 @@
|
|||
# Template file for 'ampache'
|
||||
pkgname=ampache
|
||||
version=4.2.3
|
||||
version=5.5.1
|
||||
revision=1
|
||||
create_wrksrc=yes
|
||||
hostmakedepends="unzip"
|
||||
depends="php mariadb"
|
||||
depends="php8.1 mariadb"
|
||||
short_desc="Web-based tool for managing your audio/video files"
|
||||
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
||||
license="AGPL-3.0-or-later"
|
||||
homepage="http://ampache.org"
|
||||
distfiles="https://github.com/ampache/ampache/releases/download/${version}/${pkgname}-${version}_all.zip"
|
||||
checksum=26e5984d5582c0bd1789626c7b07ce86ada86d64e0e5549baac625236a36e5ad
|
||||
python_version=2
|
||||
checksum=3e37839058c263be990915759eecab9b5da3ec324638a7ff7d8094516f56a85c
|
||||
python_version=3
|
||||
|
||||
do_install() {
|
||||
vmkdir usr/share/webapps/${pkgname}
|
||||
cp -rT ${wrksrc} ${DESTDIR}/usr/share/webapps/${pkgname}
|
||||
vlicense docs/AGPL-LICENSE
|
||||
vinstall ${FILESDIR}/nginx-example.conf 644 usr/share/doc/${pkgname}
|
||||
vlicense LICENSE.md
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue