From 49a20487e74aaa2fa17784c6c9d5a6179393e07c Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sat, 11 Jun 2011 18:10:20 +0200 Subject: move default-config to install dir --- install/default-conf/etc/apache/default | 47 +++++++++++++++++++++++++++++++++ install/default-conf/etc/apache/https | 19 +++++++++++++ install/default-conf/etc/crontab | 1 + install/default-conf/etc/festival.scm | 17 ++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 install/default-conf/etc/apache/default create mode 100644 install/default-conf/etc/apache/https create mode 100644 install/default-conf/etc/crontab create mode 100644 install/default-conf/etc/festival.scm (limited to 'install/default-conf/etc') diff --git a/install/default-conf/etc/apache/default b/install/default-conf/etc/apache/default new file mode 100644 index 00000000..49e60ba1 --- /dev/null +++ b/install/default-conf/etc/apache/default @@ -0,0 +1,47 @@ +NameVirtualHost *:80 + + ServerAdmin webmaster@localhost + + DocumentRoot /var/www/http/ + php_admin_value open_basedir "/var/www/" + + Options FollowSymLinks + AllowOverride None + + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + # This directive allows us to have apache2's default start page + # in /apache2-default/, but still have / go to the right place + #RedirectMatch ^/$ /apache2-default/ + + + ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ + + AllowOverride None + Options ExecCGI -MultiViews +SymLinksIfOwnerMatch + Order allow,deny + Allow from all + + + ErrorLog /var/log/apache2/error.log + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel warn + + CustomLog /var/log/apache2/access.log combined + ServerSignature On + + Alias /doc/ "/usr/share/doc/" + + Options Indexes MultiViews FollowSymLinks + AllowOverride None + Order deny,allow + Deny from all + Allow from 127.0.0.0/255.0.0.0 ::1/128 + + + diff --git a/install/default-conf/etc/apache/https b/install/default-conf/etc/apache/https new file mode 100644 index 00000000..aaa0bf3f --- /dev/null +++ b/install/default-conf/etc/apache/https @@ -0,0 +1,19 @@ + + + # SSL (START) + SSLEngine on + SSLCertificateFile /etc/apache2/ssl/apache.pem + SSLCertificateKeyFile /etc/apache2/apache.pem + # SSL (ENDE) + ServerAdmin webmaster@localhost + #kann auch einfach eine IP sein + ServerName localhost + php_admin_value open_basedir "/var/www/" + DocumentRoot /var/www/https + + Order Deny,Allow + Allow from all + # Zeige keine Verzeichnisse an + Options -Indexes + + diff --git a/install/default-conf/etc/crontab b/install/default-conf/etc/crontab new file mode 100644 index 00000000..d58671bc --- /dev/null +++ b/install/default-conf/etc/crontab @@ -0,0 +1 @@ +*/15 * * * * www-data (cd /var/www/services/ ; php5 cron_dect.php) diff --git a/install/default-conf/etc/festival.scm b/install/default-conf/etc/festival.scm new file mode 100644 index 00000000..d39be33e --- /dev/null +++ b/install/default-conf/etc/festival.scm @@ -0,0 +1,17 @@ +;; Any site-wide Festival initialization can be added to this file. +;; It is marked as a configuration file, so your changes will be saved +;; across upgrades of the Festival package. +;; + + +; Server access list (hosts) +(set! server_access_list '("[^.]+" "127.0.0.1" "localhost.*")) + +;; Command for Asterisk begin +(define (tts_textasterisk string mode) + "(tts_textasterisk STRING MODE) + Apply tts to STRING. This function is specifically designed for + use in server mode so a single function call may synthesize the string. + This function name may be added to the server safe functions." + (utt.send.wave.client (utt.wave.resample (utt.wave.rescale (utt.synth (eval (list 'Utterance 'Text string))) 5) 8000))) + -- cgit v1.2.3-54-g00ecf