125 lines
3.4 KiB
Perl
Executable File
125 lines
3.4 KiB
Perl
Executable File
#!/usr/bin/perl
|
|
#print "Content-type:text/plain\n\nAccess denies.";
|
|
#exit;
|
|
#__END__
|
|
|
|
<config>
|
|
|
|
Define DOMAIN localhost
|
|
Define BASE_DIR /var/www/html/website
|
|
|
|
# default project from database
|
|
project my-project
|
|
domain ${DOMAIN}
|
|
|
|
<filter>
|
|
# projects_to_exclude project1
|
|
# locations_to_exclude location1,location2
|
|
</filter>
|
|
|
|
<controllers>
|
|
# controller base directory
|
|
domain /agenda/
|
|
|
|
# customize controller URLs
|
|
calendar kalender
|
|
event sendung
|
|
events sendungen
|
|
comments kommentare
|
|
ical ical
|
|
atom atom
|
|
rss rss
|
|
</controllers>
|
|
|
|
<locations>
|
|
temp_dir ${BASE_DIR}/temp/
|
|
|
|
# source website to inject calcms widgets into
|
|
source_url_http http://${DOMAIN}/programm.html
|
|
source_url_https https://${DOMAIN}/programm.html
|
|
|
|
# feed base url
|
|
source_base_url https://${DOMAIN}/
|
|
local_base_url /agenda/
|
|
editor_base_url /agenda/planung/
|
|
widget_render_url /programm
|
|
|
|
# ajax
|
|
base_domain https://${DOMAIN}/
|
|
base_url /agenda/?
|
|
base_dir ${BASE_DIR}/agenda/
|
|
|
|
static_files_url /agenda/
|
|
|
|
# images
|
|
local_media_dir ${BASE_DIR}/media/
|
|
local_media_url /media/
|
|
thumbs_url /thumbs/
|
|
icons_url /icons/
|
|
|
|
# archives
|
|
local_archive_dir /home/calcms/archive/
|
|
local_archive_url /archive/
|
|
|
|
# listen
|
|
listen_dir /home/calcms/${DOMAIN}/
|
|
listen_url https://${DOMAIN}/listen/
|
|
|
|
# upload
|
|
local_audio_recordings_dir ${BASE_DIR}/recordings/recordings/
|
|
local_audio_recordings_url /recordings/
|
|
|
|
# multi language support
|
|
admin_pot_dir ${BASE_DIR}/agenda/planung/pot/
|
|
email info@${DOMAIN}
|
|
event_sender_email programm@${DOMAIN}
|
|
theme default
|
|
</locations>
|
|
|
|
# Hooks can be used to automate the process of updating database columns
|
|
# when new audio files are uploaded.
|
|
# A hook command
|
|
# reads the path of an audio file and
|
|
# output a list of database columns to be updated with their respective values.
|
|
# Currently, the only supported database tables are calcms_events and calcms_audio_recordings.
|
|
|
|
<audio-upload-hooks>
|
|
command1 ${BASE_DIR}/../tools/audio-upload-hooks/set-size.sh
|
|
command2 ${BASE_DIR}/../tools/audio-upload-hooks/set-loudness-duration.pl
|
|
# command3 ${BASE_DIR}/../tools/audio-upload-hooks/set-podcast-url.sh
|
|
</audio-upload-hooks>
|
|
|
|
<permissions>
|
|
result_limit 500
|
|
|
|
# limit creating comments in days before and after start of event
|
|
no_new_comments_before 10
|
|
no_new_comments_after 60
|
|
|
|
hide_event_images 0
|
|
</permissions>
|
|
|
|
<access>
|
|
hostname db
|
|
port 3306
|
|
database calcms
|
|
|
|
username calcms_read
|
|
password calread000
|
|
|
|
username_write calcms_write
|
|
password_write calwrite000
|
|
</access>
|
|
|
|
<date>
|
|
time_zone Europe/Berlin
|
|
language de
|
|
day_starting_hour 6
|
|
</date>
|
|
|
|
no_result_message Radio ${DOMAIN}
|
|
events_title Radio ${DOMAIN}
|
|
events_description Hört mehr Radio
|
|
|
|
</config>
|