Fix 'home' bugs
[hcoop/domtool2.git] / lib / easy_domain.dtl
CommitLineData
6bb366c5
AC
1{{The most common kinds of domain configuration}}
2
15e529d6
AC
3val web_node : (node) = "mire";
4
5val webAt =
6 \ n : (node) ->
7 \ host : (host) ->
8 \\ config : Vhost ->
9 (dns (dnsA host (ip_of_node n));
10
11 vhost host where
12 WebNodes = [n]
13 with
14 config
15 end);
16
17val web = webAt web_node;
6bb366c5
AC
18
19val dom =
20 \ d : (your_domain) ->
21 \\ config : Domain ->
22 domain d with
23 dns (dnsNS "ns.hcoop.net");
24 dns (dnsNS "ns2.hcoop.net");
25
6bb366c5
AC
26 handleMail;
27 mailbox <- Mailbox;
28 catchAllAlias mailbox;
29
15e529d6 30 web "www" with
6bb366c5
AC
31 end;
32
33 config
34 end;