-
Notifications
You must be signed in to change notification settings - Fork 8
/
autoradio-site.cfg
165 lines (119 loc) · 5.37 KB
/
autoradio-site.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[autoradiod]
#player to use (AutoPlayer, xmms, audacious)
player="AutoPlayer"
#directory where write new playlists generated by autoradiod
playlistdir="/usr/share/autoradio/django/media/spots"
# path to working file
logfile="/var/log/autoradio/autoradiod.log"
errfile = "/var/log/autoradio/autoradiod.err"
lockfile = "/var/run/autoradio/autoradiod.lock"
timestampfile = "/var/run/autoradio/autoradiod.timestamp"
# host xmms is running on
xmms_host="localhost"
#backward and forward time intervat to check for schedule conflict
minelab=180
# tollerance time interval to recovery schedule not done ( backward time when start autoradiod )
# to adjust the programming you have to make changes minsched minutes before
minsched=5
locale="C.UTF-8"
user = autoradio
group = autoradio
[[ env ]]
DISPLAY=':0.0'
LANG=$locale
[autoradioweb]
logfile = '/var/log/autoradio/autoradioweb.log'
errfile = '/var/log/autoradio/autoradioweb.err'
lockfile = '/var/run/autoradio/autoradioweb.lock'
user = autoradio
group = autoradio
#port = '8888'
# the web player can only manage ogg vorbis files at 44100Hz: enable or disable check on uploads
permit_no_playable_files = False
# tags help in the web view: enable or disable check on uploads
# if file do not have tags will be rejected
# this enable or disable check for 44100Hz sample rate compatibility for enclosure
require_tags_in_enclosure = True
[django]
DEBUG = True
TEMPLATE_DEBUG = True
FILE_UPLOAD_PERMISSIONS = 420
# Make this unique, and don't share it with anybody.
SECRET_KEY = random-string-of-ascii
#SESSION_COOKIE_DOMAIN = autoradio
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/Rome'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
#LANGUAGE_CODE = 'it-it'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# directories where Django looks for translation files.
LOCALE_PATHS='/usr/share/autoradio/locale',
ADMINS=Your Name [email protected],
MANAGERS=Your Name [email protected],
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/usr/share/autoradio/media/'
#URL that handles the media served from MEDIA_ROOT, used for managing
#stored files. It must end in a slash if set to a non-empty value. You
#will need to configure these files to be served in both development
#and production environments.
MEDIA_URL="/media/"
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
TEMPLATE_DIRS = "/usr/share/autoradio/templates",
#The absolute path to the directory where collectstatic will collect static files for deployment
STATIC_ROOT = "/usr/share/autoradio/static"
#URL to use when referring to static files located in STATIC_ROOT.
STATIC_URL = '/static/'
# set to true if django have to serve static file
# set to false if you use other web server like apache
SERVE_STATIC=True
# The URL where requests are redirected for login, especially when
# using the login_required() decorator.
LOGIN_URL='/login/'
[database]
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = '/usr/share/autoradio/autoradio.sqlite3' # Or path to database file if using sqlite3.
#DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
#DATABASE_NAME = 'autoradio' # Or path to database file if using sqlite3.
#DATABASE_USER = 'autoradio' # Not used with sqlite3.
#DATABASE_PASSWORD = 'autoradio' # Not used with sqlite3.
#DATABASE_HOST = 'autoradio' # Set to empty string for localhost. Not used with sqlite3.
#DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
[autoplayer]
user = autoradio
group = autoradio
logfile = '/var/log/autoradio/autoplayer.log'
errfile = '/var/log/autoradio/autoplayer.err'
lockfile = '/var/run/autoradio/autoplayer.lock'
# Add an address that the dbus-daemon should listen on. The address is in the
# standard D-Bus format that contains a transport name plus possible
# parameters/options.
# Example: <listen>unix:path=/tmp/foo</listen>
# Example: <listen>tcp:host=localhost,port=1234</listen>
# http://stackoverflow.com/questions/10158684/connecting-to-dbus-over-tcp
#busaddress='tcp:host=localhost,port=1234'
#audiosink = jackaudiosink # set to autoaudiosink / jackaudiosink
[autoradiodbus]
user = autoradio
group = autoradio
logfile = '/var/log/autoradio/autoradiodbus.log'
errfile = '/var/log/autoradio/autoradiodbus.err'
lockfile = '/var/run/autoradio/autoradiodbus.lock'
conffile = '/etc/autoradio/dbus-autoradio.conf'
[jackdaemon]
user = autoradio
group = audio
logfile = '/var/log/autoradio/jackdaemon.log'
errfile = '/var/log/autoradio/jackdaemon.err'
lockfile = '/var/run/autoradio/jackdaemon.lock'