summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hearth/apache2/helloearth.jones.dk29
-rw-r--r--hearth/uwsgi/apps-available/msg.yaml10
-rwxr-xr-xhearth/var/www/cgi/dlr-clickatell.cgi13
-rwxr-xr-xhearth/var/www/cgi/dlr-routo.cgi13
-rwxr-xr-xhearth/var/www/cgi/test.cgi13
-rw-r--r--hearth/var/www/etc/hellosms.cfg1
6 files changed, 79 insertions, 0 deletions
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 @@
+<VirtualHost *:80>
+ ServerName helloearth.jones.dk
+ ServerAdmin webmaster@jones.dk
+ DocumentRoot /var/www/vhosts/hearth/helloearth.jones.dk
+
+ <Location />
+ Options +MultiViews
+ DirectoryIndex index
+ </Location>
+ 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
+</VirtualHost>
+<VirtualHost *:80>
+ 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
+</VirtualHost>
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