diff --git a/install/INSTALL.md b/install/INSTALL.md index 4e374a8..d604323 100644 --- a/install/INSTALL.md +++ b/install/INSTALL.md @@ -142,11 +142,12 @@ apt-get install #### Configuration -edit configuration at website/config/config.cgi +Copy the configuration from website/config/config.cgi.off to website/config/config.cgi. +Setup the domain and database connection. -Now you can connect to web gui +Now you can open the web gui at http:///programm/ -https:///agenda/planung/ +To edit your radio programm open http:///agenda/planung/ ccAdmin shug!3Lu diff --git a/install/apache2-sites/calcms.conf b/install/apache2-sites/calcms.conf index 6427e2a..2341144 100644 --- a/install/apache2-sites/calcms.conf +++ b/install/apache2-sites/calcms.conf @@ -1,53 +1,58 @@ -# adopt your settings here -Define domain your-domain.org -Define base_dir /home/calcms -Define perl_lib /home/radio/calcms - -# Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel info - -# limit redirection on injecting into your website LimitInternalRecursion 4 # redirect HTTP to HTTPS, # only needed for HTTP configuration, do not use this at HTTPS configuration(!) -Redirect permanent /agenda/planung https://${domain}/agenda/planung +# Redirect permanent /agenda/planung https://${domain}/agenda/planung -# inject calcms into your website -Alias /agenda ${base_dir}/website/agenda -Alias /programm ${base_dir}/website/programm -Alias /agenda_files ${base_dir}/website/agenda_files +Define domain localhost +Define base_dir /home/calcms/racalmas +Define web_dir /home/calcms/racalmas/website/ +Define perl_lib /home/calcms/racalmas/lib +Define archive_dir /home/radio/archive/ - +# Redirect permanent /agenda/planung https://${domain}/agenda/planung +# ^ remove comment to redirect HTTP to HTTPS +# (enabling this in HTTPS templates results in endless routing loop)! + +# calcms endpoints for your website +# frontend +Alias /programm ${web_dir}/programm + +# backend +Alias /agenda ${web_dir}/agenda + +# image base +Alias /media ${base_dir}/media + +# thumbs +Alias /thumbs ${base_dir}/media/thumbs + +# icons +Alias /icons ${base_dir}/media/icons + +# audio upload +Alias /recordings ${base_dir}/recordings + +# audio download +Alias /listen ${archive_dir}/${domain} + +# upload playout status +ScriptAlias /agenda/planung/upload ${archive_dir}/${domain}/agenda/planung/upload + + AllowOverride All Options -Indexes +FollowSymLinks +MultiViews +ExecCGI Require all granted - + AllowOverride All Options -Indexes +FollowSymLinks -MultiViews -ExecCGI Require all granted - - - RewriteBase /programm - - RewriteEngine on - RewriteCond %{REQUEST_FILENAME} -f - RewriteRule (.*) $1 [L] - RewriteCond %{REQUEST_FILENAME} -d - RewriteRule (.*) $1 [L] - - RewriteRule ^kalender/(\d{4}-\d{2}-\d{2})_(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?from_date=$1&till_date=$2&$3 [L] - RewriteRule ^kalender/(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?date=$1&$2 [L] - RewriteRule ^sendungen/(\d{4}-\d{2}-\d{2})\.html[\?]?(.*)$ /agenda/aggregate.cgi?date=$1&$2 [L] - RewriteRule ^sendung/(\d+)\.html[\?]?(.*)$ /agenda/aggregate.cgi?event_id=$1&$2 [L] - RewriteRule ^sendung/serie_plus/(\d+)\.html[\?]?(.*)$ /agenda/aggregate.cgi?next_series=$1&$2 [L] - RewriteRule ^sendung/serie_minus/(\d+)\.html[\?]?(.*)$ /agenda/aggregate.cgi?previous_series=$1&$2 [L] - - + AllowOverride All Options -Indexes -FollowSymLinks -MultiViews -ExecCGI Require all granted diff --git a/website/agenda/config/config.cgi.off b/website/agenda/config/config.cgi.off index 7e93466..8532779 100755 --- a/website/agenda/config/config.cgi.off +++ b/website/agenda/config/config.cgi.off @@ -5,9 +5,8 @@ __END__ -Define DOMAIN my-radio.org +Define DOMAIN localhost Define BASE_DIR /home/calcms/racalmas/website -Define LOG_DIR /home/calcms/log # default project from database project my-project @@ -51,8 +50,7 @@ domain ${DOMAIN} temp_dir ${BASE_DIR}/temp/ - # 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 + # source website to inject calcms widgets into source_url_http http://${DOMAIN}/programm.html source_url_https https://${DOMAIN}/programm.html @@ -72,6 +70,7 @@ domain ${DOMAIN} local_media_dir ${BASE_DIR}/media/ local_media_url /media/ thumbs_url /thumbs/ + icons_url /icons/ # archives local_archive_dir /home/calcms/archive/ @@ -81,12 +80,12 @@ domain ${DOMAIN} listen_dir /home/calcms/${DOMAIN}/ listen_url https://${DOMAIN}/listen/ - local_audio_recordings_dir ${BASE_DIR}/recordings/ - local_audio_recordings_url /agenda_files/recordings/ + # 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} @@ -101,7 +100,7 @@ domain ${DOMAIN} - hostname 127.0.0.1 + hostname localhost port 3306 database calcms @@ -122,6 +121,4 @@ no_result_message Radio ${DOMAIN} events_title Radio ${DOMAIN} events_description Hört mehr Radio - -