add API v2
This commit is contained in:
parent
f809c3a8ff
commit
2df0189a90
71 changed files with 2740 additions and 315 deletions
|
@ -1,29 +1,34 @@
|
|||
WEB_PORT_LISTEN
|
||||
|
||||
<VirtualHost *:WEB_PORT>
|
||||
ServerAdmin foo@bar.org
|
||||
DocumentRoot WEB_ROOT
|
||||
php_admin_value upload_tmp_dir /tmp
|
||||
php_value post_max_size 500M
|
||||
php_value upload_max_filesize 500M
|
||||
php_value request_order "GPC"
|
||||
php_value session.gc_probability 0
|
||||
php_value session.auto_start 0
|
||||
ServerAdmin foo@bar.org
|
||||
DocumentRoot WEB_ROOT
|
||||
php_admin_value upload_tmp_dir /tmp
|
||||
php_value post_max_size 500M
|
||||
php_value upload_max_filesize 500M
|
||||
php_value request_order "GPC"
|
||||
php_value session.gc_probability 0
|
||||
php_value session.auto_start 0
|
||||
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/xml
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE application/xml
|
||||
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||||
AddOutputFilterByType DEFLATE application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript
|
||||
AddOutputFilterByType DEFLATE application/x-javascript
|
||||
AddOutputFilterByType DEFLATE application/json
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/xml
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE application/xml
|
||||
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||||
AddOutputFilterByType DEFLATE application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript
|
||||
AddOutputFilterByType DEFLATE application/x-javascript
|
||||
AddOutputFilterByType DEFLATE application/json
|
||||
|
||||
ProxyPreserveHost On
|
||||
ProxyPass /api/v2/ http://localhost:8081/api/v2/
|
||||
ProxyPassReverse /api/v2/ http://localhost:8081/api/v2/
|
||||
ProxyPass /api-auth/ http://localhost:8081/api-auth/
|
||||
ProxyPassReverse /api-auth/ http://localhost:8081/api-auth/
|
||||
Alias /api/static /usr/share/airtime/api/
|
||||
|
||||
<Directory WEB_ROOT>
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||
|
@ -34,6 +39,10 @@ WEB_PORT_LISTEN
|
|||
Allow from all
|
||||
|
||||
Require all granted
|
||||
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/share/airtime/api>
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
|
|
|
@ -1,26 +1,32 @@
|
|||
WEB_PORT_LISTEN
|
||||
|
||||
<VirtualHost *:WEB_PORT>
|
||||
ServerAdmin foo@bar.org
|
||||
DocumentRoot WEB_ROOT
|
||||
php_admin_value upload_tmp_dir /tmp
|
||||
php_value post_max_size 500M
|
||||
php_value upload_max_filesize 500M
|
||||
php_value request_order "GPC"
|
||||
php_value session.gc_probability 0
|
||||
php_value session.auto_start 0
|
||||
ServerAdmin foo@bar.org
|
||||
DocumentRoot WEB_ROOT
|
||||
php_admin_value upload_tmp_dir /tmp
|
||||
php_value post_max_size 500M
|
||||
php_value upload_max_filesize 500M
|
||||
php_value request_order "GPC"
|
||||
php_value session.gc_probability 0
|
||||
php_value session.auto_start 0
|
||||
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/xml
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE application/xml
|
||||
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||||
AddOutputFilterByType DEFLATE application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript
|
||||
AddOutputFilterByType DEFLATE application/x-javascript
|
||||
AddOutputFilterByType DEFLATE application/json
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/xml
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE application/xml
|
||||
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||||
AddOutputFilterByType DEFLATE application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript
|
||||
AddOutputFilterByType DEFLATE application/x-javascript
|
||||
AddOutputFilterByType DEFLATE application/json
|
||||
|
||||
ProxyPreserveHost On
|
||||
ProxyPass /api/v2/ http://localhost:8081/api/v2/
|
||||
ProxyPassReverse /api/v2/ http://localhost:8081/api/v2/
|
||||
ProxyPass /api-auth/ http://localhost:8081/api-auth/
|
||||
ProxyPassReverse /api-auth/ http://localhost:8081/api-auth/
|
||||
Alias /api/static /usr/share/airtime/api/
|
||||
|
||||
<Directory WEB_ROOT>
|
||||
RewriteEngine On
|
||||
|
@ -37,4 +43,8 @@ WEB_PORT_LISTEN
|
|||
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/share/airtime/api>
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
|
|
@ -22,6 +22,7 @@ libmad-ocaml
|
|||
libopus0
|
||||
libportaudio2
|
||||
libpulse0
|
||||
libpq-dev
|
||||
libsamplerate0
|
||||
libsoundtouch-ocaml
|
||||
libtaglib-ocaml
|
||||
|
@ -58,6 +59,8 @@ rabbitmq-server
|
|||
silan
|
||||
systemd-sysv
|
||||
unzip
|
||||
uwsgi
|
||||
uwsgi-plugin-python3
|
||||
vorbisgain
|
||||
vorbis-tools
|
||||
vorbis-tools
|
||||
|
|
|
@ -17,6 +17,7 @@ libmad-ocaml
|
|||
libopus0
|
||||
libportaudio2
|
||||
libpulse0
|
||||
libpq-dev
|
||||
libsamplerate0
|
||||
libsoundtouch-ocaml
|
||||
libtaglib-ocaml
|
||||
|
@ -49,6 +50,8 @@ python3-cairo
|
|||
rabbitmq-server
|
||||
systemd-sysv
|
||||
unzip
|
||||
uwsgi
|
||||
uwsgi-plugin-python3
|
||||
vorbisgain
|
||||
vorbis-tools
|
||||
vorbis-tools
|
||||
|
|
|
@ -23,6 +23,7 @@ libmad-ocaml
|
|||
libopus0
|
||||
libportaudio2
|
||||
libpulse0
|
||||
libpq-dev
|
||||
libsamplerate0
|
||||
libsoundtouch-ocaml
|
||||
libssl-dev
|
||||
|
@ -70,6 +71,8 @@ rabbitmq-server
|
|||
silan
|
||||
sysvinit-utils
|
||||
unzip
|
||||
uwsgi
|
||||
uwsgi-plugin-python3
|
||||
vorbisgain
|
||||
vorbis-tools
|
||||
xmlstarlet
|
||||
|
|
|
@ -23,6 +23,7 @@ libmad-ocaml
|
|||
libopus0
|
||||
libportaudio2
|
||||
libpulse0
|
||||
libpq-dev
|
||||
libsamplerate0
|
||||
libsoundtouch-ocaml
|
||||
libssl-dev
|
||||
|
@ -70,6 +71,8 @@ rabbitmq-server
|
|||
silan
|
||||
sysvinit-utils
|
||||
unzip
|
||||
uwsgi
|
||||
uwsgi-plugin-python3
|
||||
vorbisgain
|
||||
vorbis-tools
|
||||
vorbis-tools
|
||||
|
|
|
@ -17,6 +17,7 @@ libmad-ocaml
|
|||
libopus0
|
||||
libportaudio2
|
||||
libpulse0
|
||||
libpq-dev
|
||||
libsamplerate0
|
||||
libsoundtouch-ocaml
|
||||
libssl-dev
|
||||
|
@ -63,4 +64,6 @@ vorbisgain
|
|||
vorbis-tools
|
||||
vorbis-tools
|
||||
xmlstarlet
|
||||
uwsgi
|
||||
uwsgi-plugin-python3
|
||||
zip
|
||||
|
|
10
installer/uwsgi/libretime-api.ini
Normal file
10
installer/uwsgi/libretime-api.ini
Normal file
|
@ -0,0 +1,10 @@
|
|||
[uwsgi]
|
||||
module = libretimeapi.wsgi
|
||||
|
||||
master = true
|
||||
plugin = python3
|
||||
processes = 10
|
||||
vacuum = true
|
||||
http-socket = :8081
|
||||
uid = WEB_USER
|
||||
gid = WEB_USER
|
Loading…
Add table
Add a link
Reference in a new issue