config.cgi: use variables in configuration
This commit is contained in:
@@ -1,103 +1,87 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
use CGI qw(header param Vars);
|
print "Content-type:text/plain\n\nAccess denies.";
|
||||||
$CGI::POST_MAX = 0;$CGI::DISABLE_UPLOADS = 1;$cgi=new CGI();print $cgi->header();return;exit;
|
exit;
|
||||||
__END__
|
__END__
|
||||||
|
|
||||||
<config>
|
<config>
|
||||||
|
|
||||||
# TODO: replace with projects from database
|
Define DOMAIN your-domain.org
|
||||||
project Corax
|
Define BASE_DIR /home/calcms/website
|
||||||
|
Define LOG_DIR /home/radio/log
|
||||||
|
|
||||||
|
# default project from database
|
||||||
|
project Corax
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
# projects_to_exclude project1
|
||||||
|
# locations_to_exclude location1,location2
|
||||||
|
</filter>
|
||||||
|
|
||||||
# widget support
|
|
||||||
<controllers>
|
<controllers>
|
||||||
# controller base directory
|
# controller base directory
|
||||||
domain /agenda/
|
domain /agenda/
|
||||||
|
|
||||||
# customize controller URLs
|
# customize controller URLs
|
||||||
calendar kalender
|
calendar kalender
|
||||||
event sendung
|
event sendung
|
||||||
events sendungen
|
events sendungen
|
||||||
comments kommentare
|
comments kommentare
|
||||||
ical ical
|
ical ical
|
||||||
atom atom
|
atom atom
|
||||||
rss rss
|
rss rss
|
||||||
</controllers>
|
</controllers>
|
||||||
|
|
||||||
# widget support
|
|
||||||
<templates>
|
|
||||||
events event_menu.html
|
|
||||||
events event_list.html
|
|
||||||
events event_details.html
|
|
||||||
events event_playlist.html
|
|
||||||
events event_playlist.txt
|
|
||||||
events event.ics
|
|
||||||
events event.atom.xml
|
|
||||||
events event.rss.xml
|
|
||||||
events event.json
|
|
||||||
|
|
||||||
comments comments.html
|
|
||||||
comments comments_newest.html
|
|
||||||
comments comments.xml
|
|
||||||
aggregator
|
|
||||||
</templates>
|
|
||||||
|
|
||||||
|
|
||||||
<system>
|
<system>
|
||||||
config_file /home/calcms/website/agenda/config/config.cgi
|
config_file ${BASE_DIR}/agenda/config/config.cgi
|
||||||
|
|
||||||
log_file /var/www/vhosts/system/yourdomain.org/logs/error_log
|
log_file /var/www/vhosts/${DOMAIN}/logs/error_log
|
||||||
log_debug_file /home/calcms/log/calcms.log
|
log_debug_file ${LOG_DIR}/${DOMAIN}/calcms.log
|
||||||
log_debug_memory_file /home/calcms/log/calcms-mem.log
|
log_debug_memory_file ${LOG_DIR}/${DOMAIN}/calcms-mem.log
|
||||||
job_log /home/calcms/log/jobs.log
|
|
||||||
|
|
||||||
debug_memory 0
|
debug_memory 0
|
||||||
debug 0
|
debug 0
|
||||||
</system>
|
</system>
|
||||||
|
|
||||||
<cache>
|
<cache>
|
||||||
use_cache 0
|
|
||||||
use_client_cache 0
|
use_client_cache 0
|
||||||
compress 0
|
|
||||||
cache_dir cache/
|
|
||||||
base_url /programm
|
base_url /programm
|
||||||
</cache>
|
</cache>
|
||||||
|
|
||||||
<locations>
|
<locations>
|
||||||
|
temp_dir ${BASE_DIR}/temp/
|
||||||
|
|
||||||
# URLs of the program page the agenda should be injected into (done by preload_agenda.pl)
|
# URLs of the program page the agenda should be injected into (done by preload_agenda.pl)
|
||||||
# this is the page containing calcms_menu, and other ids
|
# this is the page containing calcms_menu, and other ids
|
||||||
source_url_http http://www.yourdomain.org/programm.html
|
source_url_http http://${DOMAIN}/programm.html
|
||||||
source_url_https https://www.yourdomain.org/programm.html
|
source_url_https https://${DOMAIN}/programm.html
|
||||||
|
|
||||||
# feed base url
|
# feed base url
|
||||||
source_base_url http://yourdomain.org/
|
source_base_url https://${DOMAIN}/
|
||||||
local_base_url /agenda/
|
local_base_url /agenda/
|
||||||
|
editor_base_url /agenda/planung/
|
||||||
|
|
||||||
# ajax
|
# ajax
|
||||||
base_domain http://yourdomain.org/
|
base_domain https://${DOMAIN}/
|
||||||
base_url /agenda/?
|
base_url /agenda/?
|
||||||
base_dir /home/calcms/website/agenda/
|
base_dir ${BASE_DIR}/agenda/
|
||||||
|
|
||||||
static_files_url /agenda/
|
static_files_url /agenda/
|
||||||
|
|
||||||
# images
|
# images
|
||||||
local_media_dir /home/calcms/website/agenda_files/media/
|
local_media_dir ${BASE_DIR}/agenda_files/media/
|
||||||
local_media_url /agenda_files/media/
|
local_media_url /agenda_files/media/
|
||||||
|
|
||||||
# archives
|
# archives
|
||||||
local_archive_dir /home/calcms/archive/
|
local_archive_dir /home/calcms/archive/
|
||||||
local_archive_url /archive/
|
local_archive_url /archive/
|
||||||
|
|
||||||
local_audio_recordings_dir /home/calcms/recordings/
|
local_audio_recordings_dir ${BASE_DIR}/recordings/
|
||||||
local_audio_recordings_url /recordings/
|
local_audio_recordings_url /agenda_files/recordings/
|
||||||
|
|
||||||
# synchronization
|
|
||||||
sync_cms_dir /home/calcms/sync_cms/
|
|
||||||
|
|
||||||
# multi language support
|
# multi language support
|
||||||
admin_pot_dir /home/calcms/website/agenda/planung/pot/
|
admin_pot_dir ${BASE_DIR}/agenda/planung/pot/
|
||||||
</locations>
|
</locations>
|
||||||
|
|
||||||
|
|
||||||
<permissions>
|
<permissions>
|
||||||
result_limit 500
|
result_limit 500
|
||||||
|
|
||||||
@@ -105,7 +89,7 @@ project Corax
|
|||||||
no_new_comments_before 10
|
no_new_comments_before 10
|
||||||
no_new_comments_after 60
|
no_new_comments_after 60
|
||||||
|
|
||||||
# hide_event_images 1
|
hide_event_images 0
|
||||||
</permissions>
|
</permissions>
|
||||||
|
|
||||||
<access>
|
<access>
|
||||||
|
|||||||
Reference in New Issue
Block a user