From e59ed1dabc2d40a46cbc1d9bafcdf34c564487af Mon Sep 17 00:00:00 2001 From: Jonas Date: Thu, 18 Oct 2012 07:11:32 +0200 Subject: Add helloearth setup. --- hearth/apache2/helloearth.jones.dk | 29 +++++++++++++++++++++++++++++ hearth/uwsgi/apps-available/msg.yaml | 10 ++++++++++ hearth/var/www/cgi/dlr-clickatell.cgi | 13 +++++++++++++ hearth/var/www/cgi/dlr-routo.cgi | 13 +++++++++++++ hearth/var/www/cgi/test.cgi | 13 +++++++++++++ hearth/var/www/etc/hellosms.cfg | 1 + 6 files changed, 79 insertions(+) create mode 100644 hearth/apache2/helloearth.jones.dk create mode 100644 hearth/uwsgi/apps-available/msg.yaml create mode 100755 hearth/var/www/cgi/dlr-clickatell.cgi create mode 100755 hearth/var/www/cgi/dlr-routo.cgi create mode 100755 hearth/var/www/cgi/test.cgi create mode 100644 hearth/var/www/etc/hellosms.cfg (limited to 'hearth') diff --git a/hearth/apache2/helloearth.jones.dk b/hearth/apache2/helloearth.jones.dk new file mode 100644 index 0000000..ad0cac1 --- /dev/null +++ b/hearth/apache2/helloearth.jones.dk @@ -0,0 +1,29 @@ + + ServerName helloearth.jones.dk + ServerAdmin webmaster@jones.dk + DocumentRoot /var/www/vhosts/hearth/helloearth.jones.dk + + + Options +MultiViews + DirectoryIndex index + + AddLanguage da .da + + SuexecUserGroup hearth hearth + ScriptAlias /ikiwiki.cgi /var/www/cgi-vhosts/hearth/helloearth.jones.dk/ikiwiki.cgi + ScriptAlias /test.cgi /var/www/cgi-vhosts/hearth/helloearth.jones.dk/dlr-clickatell.cgi + ScriptAlias /dlr/clickatell /var/www/cgi-vhosts/hearth/helloearth.jones.dk/dlr-clickatell.cgi + ScriptAlias /dlr/routo /var/www/cgi-vhosts/hearth/helloearth.jones.dk/dlr-routo.cgi + + ErrorLog /var/log/apache2/helloearth.jones.dk-error.log + CustomLog /var/log/apache2/helloearth.jones.dk-access.log combined + + + ServerName www.helloearth.jones.dk + ServerAlias *.helloearth.jones.dk + + RewriteEngine On + RewriteRule / http://helloearth.jones.dk/ [R] + + CustomLog /var/log/apache2/redirect.log vhost_combined + diff --git a/hearth/uwsgi/apps-available/msg.yaml b/hearth/uwsgi/apps-available/msg.yaml new file mode 100644 index 0000000..fdc09fa --- /dev/null +++ b/hearth/uwsgi/apps-available/msg.yaml @@ -0,0 +1,10 @@ +uwsgi: + plugins: 0:psgi + uid: www-msg +# gid: www-data + umask: 007 +# socket: /run/uwsgi/app/msg/socket + chdir: /home/www-msg/public_webdata/msg + check-static: /home/www-msg/public_webdata/msg/public + psgi: bin/app.pl + env: DANCER_ENVIRONMENT=production diff --git a/hearth/var/www/cgi/dlr-clickatell.cgi b/hearth/var/www/cgi/dlr-clickatell.cgi new file mode 100755 index 0000000..df849bf --- /dev/null +++ b/hearth/var/www/cgi/dlr-clickatell.cgi @@ -0,0 +1,13 @@ +#!/usr/bin/perl +#use FindBin '$Bin'; +#use lib "$Bin/../../public_webdata/hearth/HelloSMS/lib"; +use lib "/home/hearth/public_webdata/hearth/HelloSMS/lib"; +use HelloSMS::DLR; + +my $webapp = HelloSMS::DLR->new( + PARAMS => { + cfg_file => '/home/hearth/public_webdata/hearth/HelloSMS/etc/hellosms.cfg', + id => 'clickatell', + }, +); +$webapp->run(); diff --git a/hearth/var/www/cgi/dlr-routo.cgi b/hearth/var/www/cgi/dlr-routo.cgi new file mode 100755 index 0000000..1675fd2 --- /dev/null +++ b/hearth/var/www/cgi/dlr-routo.cgi @@ -0,0 +1,13 @@ +#!/usr/bin/perl +#use FindBin '$Bin'; +#use lib "$Bin/../../public_webdata/hearth/HelloSMS/lib"; +use lib "/home/hearth/public_webdata/hearth/HelloSMS/lib"; +use HelloSMS::DLR; + +my $webapp = HelloSMS::DLR->new( + PARAMS => { + cfg_file => '/home/hearth/public_webdata/hearth/HelloSMS/etc/hellosms.cfg', + id => 'routo', + }, +); +$webapp->run(); diff --git a/hearth/var/www/cgi/test.cgi b/hearth/var/www/cgi/test.cgi new file mode 100755 index 0000000..df849bf --- /dev/null +++ b/hearth/var/www/cgi/test.cgi @@ -0,0 +1,13 @@ +#!/usr/bin/perl +#use FindBin '$Bin'; +#use lib "$Bin/../../public_webdata/hearth/HelloSMS/lib"; +use lib "/home/hearth/public_webdata/hearth/HelloSMS/lib"; +use HelloSMS::DLR; + +my $webapp = HelloSMS::DLR->new( + PARAMS => { + cfg_file => '/home/hearth/public_webdata/hearth/HelloSMS/etc/hellosms.cfg', + id => 'clickatell', + }, +); +$webapp->run(); diff --git a/hearth/var/www/etc/hellosms.cfg b/hearth/var/www/etc/hellosms.cfg new file mode 100644 index 0000000..222614a --- /dev/null +++ b/hearth/var/www/etc/hellosms.cfg @@ -0,0 +1 @@ +templates_path = /home/hearth/public_webdata/hearth/HelloSMS/templates -- cgit v1.2.3