initial commit of file from CVS for smeserver-madsonic on Sat Sep 7 20:34:52 AEST 2024
This commit is contained in:
1
root/etc/e-smith/db/accounts/defaults/madsonic/Target
Normal file
1
root/etc/e-smith/db/accounts/defaults/madsonic/Target
Normal file
@@ -0,0 +1 @@
|
||||
http://localhost:4041/madsonic
|
1
root/etc/e-smith/db/accounts/defaults/madsonic/type
Normal file
1
root/etc/e-smith/db/accounts/defaults/madsonic/type
Normal file
@@ -0,0 +1 @@
|
||||
ProxyPass
|
1
root/etc/e-smith/db/configuration/defaults/madsonic/Name
Normal file
1
root/etc/e-smith/db/configuration/defaults/madsonic/Name
Normal file
@@ -0,0 +1 @@
|
||||
madsonic
|
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/madsonic/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/madsonic/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
5
root/etc/e-smith/events/actions/madsonic-fixperms
Normal file
5
root/etc/e-smith/events/actions/madsonic-fixperms
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
chown madsonic:madsonic -R /var/media
|
||||
chown madsonic:madsonic -R /var/madsonic/*
|
||||
chown madsonic:root /var/madsonic/madsonic.properties /var/madsonic/madsonic.log
|
@@ -0,0 +1 @@
|
||||
PERMS=0755
|
@@ -0,0 +1,34 @@
|
||||
# needed local webserver to alow madsonic.test configuration
|
||||
Listen 127.0.0.1:8082
|
||||
<VirtualHost 127.0.0.1:8082>
|
||||
ServerName www.madsonic.org
|
||||
ServerAlias madsonic.org beta.madsonic.org
|
||||
DocumentRoot /var/www/backend/
|
||||
|
||||
Alias /backend/validateLicense.view /var/www/backend/validateLicense.view
|
||||
Alias /backend/validateLicenseKey.view /var/www/backend/validateLicense.view
|
||||
Alias /backend/version.view /var/www/backend/validateLicense.view
|
||||
<Directory /var/www/backend >
|
||||
AddType text/plain .view
|
||||
order allow,deny
|
||||
allow from all
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Listen 127.0.0.1:8090
|
||||
<VirtualHost 127.0.0.1:8090>
|
||||
ServerName www.madsonic.org
|
||||
ServerAlias madsonic.org beta.madsonic.org
|
||||
DocumentRoot /var/www/backend/
|
||||
Alias /backend/redirect/register.view /var/www/backend/validateLicense.view
|
||||
Alias /backend/redirect/unregister.view /var/www/backend/validateLicense.view
|
||||
Alias /backend/redirect/test.view /var/www/backend/validateLicense.view
|
||||
Alias /backend/version.view /var/www/backend/validateLicense.view
|
||||
</VirtualHost>
|
||||
<Directory /var/www/backend >
|
||||
AddType text/plain .view
|
||||
order allow,deny
|
||||
allow from all
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
3
root/etc/e-smith/templates/etc/rsyslog.conf/32madsonic
Normal file
3
root/etc/e-smith/templates/etc/rsyslog.conf/32madsonic
Normal file
@@ -0,0 +1,3 @@
|
||||
# we do not log the service unit content outside of journald
|
||||
#to see actual madsonic log see /var/madsonic/madsonic.log and /var/madsonic/madsonic_sh.log
|
||||
:programname, isequal, "madsonic" ~
|
81
root/etc/e-smith/templates/etc/sysconfig/madsonic/40madsonic
Normal file
81
root/etc/e-smith/templates/etc/sysconfig/madsonic/40madsonic
Normal file
@@ -0,0 +1,81 @@
|
||||
#
|
||||
# This is the configuration file for the Madsonic service
|
||||
# (/etc/init.d/madsonic)
|
||||
#
|
||||
# To change the startup parameters of Madsonic, modify
|
||||
# the MADSONIC_ARGS variable below.
|
||||
#
|
||||
# Type "/usr/share/madsonic/madsonic.sh --help" on the command line to read an
|
||||
# explanation of the different options.
|
||||
#
|
||||
# For example, to specify that Madsonic should use port 80 (for http)
|
||||
# and 443 (for https), and use a Java init memory heap size of 192 MB,
|
||||
# and use a Java max memory heap size of 384 MB
|
||||
# use the following:
|
||||
#
|
||||
# MADSONIC_ARGS="--port=80 --https-port=443 --init-memory=192 --max-memory=384"
|
||||
|
||||
|
||||
#MADSONIC_ARGS="{
|
||||
$madhome = $madsonic{'home'} || "/var/madsonic";
|
||||
$madhost = $madsonic{'host'} || "0.0.0.0";
|
||||
$madport = $madsonic{'port'} || "4041";
|
||||
$madpath = $madsonic{'path'} || "/madsonic";
|
||||
$madhttps_port = $madsonic{'https_port'} || "0";
|
||||
$madinitmem = $madsonic{'InitMemory'} || "200";
|
||||
$madmem = $madsonic{'MaxMemory'} || "350";
|
||||
$madpid = $madsonic{'PIDfile'} || "";
|
||||
$madmusic = $madsonic{'Music_Folder'} || "/var/media";
|
||||
$madpod = $madsonic{'Podcast_Folder'} || "/var/media/podcast";
|
||||
$madinco = $madsonic{'Inco_Folder'} || "/var/media/incoming";
|
||||
$madimpo = $madsonic{'Impo_Folder'} || "/var/media/playlists/import";
|
||||
$madexpo = $madsonic{'Expo_Folder'} || "/var/media/playlists/export";
|
||||
$madback = $madsonic{'Back_Folder'} || "/var/media/playlists/backup";
|
||||
$madtest = $madsonic{'TestMode'} || "false";
|
||||
$madgzip = $madsonic{'gzip'} || "true";
|
||||
$madtrans = $madsonic{'TranscodeFolder'} || "/var/madsonic/transcode";
|
||||
use DateTime::TimeZone;
|
||||
$madtz= $madsonic{"timezone"} || DateTime::TimeZone->new( name => 'local' )->name();
|
||||
|
||||
$OUT .= "--max-memory=$madmem --context-path='$madpath'";
|
||||
|
||||
$OUT .= " --home='$madhome'" unless $madhome eq "/var/madsonic";
|
||||
$OUT .= " --host='$madhost'" unless $madhost eq "0.0.0.0";
|
||||
$OUT .= " --port='$madport'" unless $madport == "4040";
|
||||
$OUT .= " --https-port='$madhttps_port'" unless $madhttps_port eq "0";
|
||||
$OUT .= " --pidfile='$madpid'" unless $madpid eq "";
|
||||
$OUT .= " --default-music-folder='$madmusic'" unless $madmusic eq "/var/media";
|
||||
$OUT .= " --default-podcast-folder='$madpod'" unless $madpod eq "/var/media/podcast";
|
||||
$OUT .= " --default-playlist-import-folder='$madimpo'" unless $madimpo eq "/var/media/playlists/import";
|
||||
$OUT .= " --default-playlist-export-folder='$madexpo'" unless $madexpo eq "/var/media/playlists/export";
|
||||
$OUT .= " --default-playlist-backup-folder='$madback'" unless $madback eq "/var/media/playlists/backup";
|
||||
$OUT .= " --init-memory=$madinitmem";
|
||||
$OUT .= " --max-memory=$madmem";
|
||||
}"
|
||||
|
||||
|
||||
# The user which should run the Mabsonic process. Default "root".
|
||||
# Note that non-root users are by default not allowed to use ports
|
||||
# below 1024. Also make sure to grant the user write permissions in
|
||||
# the music directories, otherwise changing album art and tags will fail.
|
||||
|
||||
MADSONIC_USER=madsonic
|
||||
|
||||
###for madsonic.service
|
||||
MADSONIC_HOME={$madhome}
|
||||
MADSONIC_HOST={$madhost}
|
||||
MADSONIC_PORT={$madport}
|
||||
MADSONIC_HTTPS_PORT={$madhttps_port}
|
||||
MADSONIC_CONTEXT_PATH={$madpath}
|
||||
MADSONIC_MAX_MEMORY={$madmem}
|
||||
MADSONIC_DEFAULT_MUSIC_FOLDER={$madmusic}
|
||||
MADSONIC_DEFAULT_UPLOAD_FOLDER={$madinco}
|
||||
MADSONIC_DEFAULT_PODCAST_FOLDER={$madpod}
|
||||
MADSONIC_DEFAULT_PLAYLIST_IMPORT_FOLDER={$madimpo}
|
||||
MADSONIC_DEFAULT_PLAYLIST_EXPORT_FOLDER={$madexpo}
|
||||
MADSONIC_DEFAULT_PLAYLIST_BACKUP_FOLDER={$madback}
|
||||
MADSONIC_DEFAULT_TRANSCODE_FOLDER={$madtrans}
|
||||
MADSONIC_DEFAULT_TIMEZONE={$madtz}
|
||||
MADSONIC_GZIP={$madgzip}
|
||||
MADSONIC_TEST={$madtest}
|
||||
|
Reference in New Issue
Block a user