Browse Source

set up caddyfile for retreats and master

git-veda-retreats 2 years ago
parent
commit
e33aea8761

+ 1 - 0
.gitignore View File

@@ -1 +1,2 @@
1 1
 .DS_Store
2
+log/*

+ 23 - 3
Caddyfile View File

@@ -1,7 +1,6 @@
1 1
 http://veda-retreats.com {
2
-    bind 0.0.0.0
3 2
     gzip
4
-    root public
3
+    root /home/cloudscalers/sites/git-veda-retreats/public
5 4
 
6 5
     mailout /www_veda-retreats {
7 6
        maillog     log/caddy-mailout.log
@@ -9,7 +8,28 @@ http://veda-retreats.com {
9 8
 
10 9
        to info@veda-masters.com
11 10
        subject "Text Email from {{ .Form.Get \"name\" }}"
12
-       body template.txt
11
+       body /home/cloudscalers/sites/git-veda-retreats/template.txt
12
+
13
+       username "caddymail@greenitglobe.com"
14
+       password "xthhjouucnpcnhko"
15
+       host smtp.gmail.com
16
+       port 465
17
+       ratelimit_capacity 3
18
+       ratelimit_interval 6s
19
+   }
20
+}
21
+http://veda-masters.com {
22
+
23
+    gzip
24
+    root /home/cloudscalers/sites/veda-masters/public
25
+
26
+    mailout /www_veda-masters.com {
27
+       maillog     /home/cloudscalers/sites/veda-masters/log/caddy-mailout.log
28
+       errorlog    /home/cloudscalers/sites/veda-masters/log/caddy-mailout.log
29
+
30
+       to info@veda-masters.com
31
+       subject "Text Email from {{ .Form.Get \"name\" }}"
32
+       body /home/cloudscalers/sites/veda-masters/template.txt
13 33
 
14 34
        username "caddymail@greenitglobe.com"
15 35
        password "xthhjouucnpcnhko"

+ 2 - 1
README.md View File

@@ -1,2 +1,3 @@
1 1
 # www_veda-retreats
2
-
2
+# start caddy server
3
+# caddy -conf /home/cloudscalers/sites/git-veda-retreats/Caddyfile

+ 0 - 0
log/caddy-mailout.log/mail_errors_veda-masters.com.log View File


+ 0 - 0
log/caddy-mailout.log/mail_errors_veda-masters.com9080.log View File


+ 0 - 0
log/caddy-mailout.log/mail_errors_veda-retreats.com.log View File


+ 22 - 0
log/caddy-mailout.log/mail_veda-masters.com_1499244344756423691.txt View File

@@ -0,0 +1,22 @@
1
+Mime-Version: 1.0
2
+Date: Wed, 05 Jul 2017 08:45:44 +0000
3
+To: info@veda-masters.com
4
+From: "Anton" <shmdtt@gmail.com>
5
+Subject: Text Email from Anton
6
+Content-Transfer-Encoding: quoted-printable
7
+Content-Type: text/plain; charset=UTF-8
8
+
9
+Hello,
10
+
11
+please find below a new contact:
12
+
13
+Name            Anton
14
+Email           shmdtt@gmail.com
15
+
16
+
17
+Message:
18
+test
19
+
20
+Best Regards,
21
+
22
+Veda Master Support