<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[12870] CalendarServer/trunk/calendarserver/webadmin</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.calendarserver.org//changeset/12870">12870</a></dd>
<dt>Author</dt> <dd>wsanchez@apple.com</dd>
<dt>Date</dt> <dd>2014-03-10 15:58:24 -0700 (Mon, 10 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add server configuration page.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#CalendarServertrunkcalendarserverwebadminlandingpy">CalendarServer/trunk/calendarserver/webadmin/landing.py</a></li>
<li><a href="#CalendarServertrunkcalendarserverwebadminlandingxhtml">CalendarServer/trunk/calendarserver/webadmin/landing.xhtml</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#CalendarServertrunkcalendarserverwebadminconfigpy">CalendarServer/trunk/calendarserver/webadmin/config.py</a></li>
<li><a href="#CalendarServertrunkcalendarserverwebadminconfigxhtml">CalendarServer/trunk/calendarserver/webadmin/config.xhtml</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalendarServertrunkcalendarserverwebadminconfigpy"></a>
<div class="addfile"><h4>Added: CalendarServer/trunk/calendarserver/webadmin/config.py (0 => 12870)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/calendarserver/webadmin/config.py                                (rev 0)
+++ CalendarServer/trunk/calendarserver/webadmin/config.py        2014-03-10 22:58:24 UTC (rev 12870)
</span><span class="lines">@@ -0,0 +1,132 @@
</span><ins>+# -*- test-case-name: calendarserver.webadmin.test.test_landing -*-
+##
+# Copyright (c) 2009-2014 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
+&quot;&quot;&quot;
+Calendar Server Configuration UI.
+&quot;&quot;&quot;
+
+__all__ = [
+    &quot;ConfigurationResource&quot;,
+]
+
+from twisted.web.template import renderer, tags as html
+
+from .resource import PageElement, TemplateResource
+
+
+
+class ConfigurationPageElement(PageElement):
+    &quot;&quot;&quot;
+    Configuration management page element.
+    &quot;&quot;&quot;
+
+    def __init__(self, configuration):
+        PageElement.__init__(self, u&quot;config&quot;)
+
+        self.configuration = configuration
+
+
+    def pageSlots(self):
+        slots = {
+            u&quot;title&quot;: u&quot;Server Configuration&quot;,
+        }
+
+        for key in (
+            &quot;ServerHostName&quot;,
+            &quot;HTTPPort&quot;,
+            &quot;SSLPort&quot;,
+            &quot;BindAddresses&quot;,
+            &quot;BindHTTPPorts&quot;,
+            &quot;BindSSLPorts&quot;,
+            &quot;EnableSSL&quot;,
+            &quot;RedirectHTTPToHTTPS&quot;,
+            &quot;SSLCertificate&quot;,
+            &quot;SSLPrivateKey&quot;,
+            &quot;SSLAuthorityChain&quot;,
+            &quot;SSLMethod&quot;,
+            &quot;SSLCiphers&quot;,
+            &quot;EnableCalDAV&quot;,
+            &quot;EnableCardDAV&quot;,
+            &quot;ServerRoot&quot;,
+            &quot;EnableSSL&quot;,
+            &quot;UserQuota&quot;,
+            &quot;MaxCollectionsPerHome&quot;,
+            &quot;MaxResourcesPerCollection&quot;,
+            &quot;MaxResourceSize&quot;,
+            &quot;UserName&quot;,
+            &quot;GroupName&quot;,
+            &quot;ProcessType&quot;,
+            &quot;MultiProcess.MinProcessCount&quot;,
+            &quot;MultiProcess.ProcessCount&quot;,
+            &quot;MaxRequests&quot;,
+        ):
+            value = self.configuration
+
+            for key in key.split(&quot;.&quot;):
+                value = getattr(value, key)
+
+            def describe(value):
+                if value == u&quot;&quot;:
+                    return u&quot;(empty string)&quot;
+
+                if value is None:
+                    return u&quot;(no value)&quot;
+
+                return html.code(unicode(value))
+
+            if isinstance(value, list):
+                result = []
+                for item in value:
+                    result.append(describe(item))
+                    result.append(html.br())
+                result.pop()
+
+            else:
+                result = describe(value)
+
+            slots[key] = result
+
+        return slots
+
+
+    @renderer
+    def log_level_row(self, request, tag):
+        def rowsForNamespaces(namespaces):
+            for namespace in namespaces:
+                yield tag.clone().fillSlots(
+                    log_level_name=&quot;** name **&quot;,
+                    log_level_value=&quot;** value **&quot;,
+                )
+
+        namespaces = ()
+
+        return rowsForNamespaces(namespaces)
+
+
+
+class ConfigurationResource(TemplateResource):
+    &quot;&quot;&quot;
+    Configuration management page resource.
+    &quot;&quot;&quot;
+
+    addSlash = False
+
+
+    def __init__(self, configuration):
+        TemplateResource.__init__(
+            self, lambda: ConfigurationPageElement(configuration)
+        )
</ins></span></pre></div>
<a id="CalendarServertrunkcalendarserverwebadminconfigxhtml"></a>
<div class="addfile"><h4>Added: CalendarServer/trunk/calendarserver/webadmin/config.xhtml (0 => 12870)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/calendarserver/webadmin/config.xhtml                                (rev 0)
+++ CalendarServer/trunk/calendarserver/webadmin/config.xhtml        2014-03-10 22:58:24 UTC (rev 12870)
</span><span class="lines">@@ -0,0 +1,261 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html
+ xmlns:t=&quot;http://twistedmatrix.com/ns/twisted.web.template/0.1&quot;
+ t:render=&quot;main&quot;
+&gt;
+
+  &lt;head&gt;
+    &lt;title&gt;&lt;t:slot name=&quot;title&quot; /&gt;&lt;/title&gt;
+    &lt;link t:render=&quot;stylesheet&quot; /&gt;
+
+    &lt;style&gt;
+
+      .config_key {
+        width: 20%;
+      }
+      .config_value {
+        width: 40%;
+      }
+
+    &lt;/style&gt;
+
+  &lt;/head&gt;
+
+  &lt;body&gt;
+
+    &lt;h1&gt;&lt;t:slot name=&quot;title&quot; /&gt;&lt;/h1&gt;
+
+
+    &lt;h2&gt;Public Network Address Information&lt;/h2&gt;
+
+    &lt;table&gt;
+      &lt;caption&gt;
+        These settings determine how one accesses the server on the Internet.
+        This may or may not be the same address that the server listens to itself.
+        This may, for example, be the address for a load balancer which forwards requests to the server.
+      &lt;/caption&gt;
+      &lt;tbody&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Host Name&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;ServerHostName&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;HTTP Port&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;HTTPPort&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot;&gt;
+            For most servers, this should be &lt;code&gt;80&lt;/code&gt;.
+          &lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;HTTPS (TLS) Port&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;SSLPort&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot;&gt;
+            For most servers, this should be &lt;code&gt;443&lt;/code&gt;.
+          &lt;/td&gt;
+        &lt;/tr&gt;
+      &lt;/tbody&gt;
+    &lt;/table&gt;
+
+
+    &lt;h2&gt;Bound Network Address Information&lt;/h2&gt;
+
+    &lt;table&gt;
+      &lt;caption&gt;
+        These settings determine the actual network address that the server binds to.
+        By default, this is the same as the public network address information provided above.
+      &lt;/caption&gt;
+      &lt;tbody&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;IP Addresses&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;BindAddresses&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;HTTP Ports&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;BindHTTPPorts&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;TLS Ports&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;BindSSLPorts&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+      &lt;/tbody&gt;
+    &lt;/table&gt;
+
+
+    &lt;h2&gt;Transport Layer Security (TLS) Settings&lt;/h2&gt;
+
+    &lt;table&gt;
+      &lt;caption&gt;
+        These settings determine how one accesses the server on the Internet.
+        This may or may not be the same address that the server listens to itself.
+        This may, for example, be the address for a load balancer which forwards requests to the server.
+      &lt;/caption&gt;
+      &lt;tbody&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Enable HTTPS (TLS)&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;EnableSSL&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot;&gt;
+            It is strongly advised that TLS is enabled on production servers.
+          &lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Redirect To HTTPS&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;RedirectHTTPToHTTPS&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot;&gt;
+            Redirect clients to the secure port (recommended).
+          &lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;TLS Certificate&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;SSLCertificate&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;TLS Private Key&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;SSLPrivateKey&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;TLS Authority Chain&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;SSLAuthorityChain&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;TLS Methods&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;SSLMethod&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;TLS Ciphers&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;SSLCiphers&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+      &lt;/tbody&gt;
+    &lt;/table&gt;
+
+
+    &lt;h2&gt;Service Settings&lt;/h2&gt;
+
+    &lt;table&gt;
+      &lt;caption /&gt;
+      &lt;tbody&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Enable CalDAV&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;EnableCalDAV&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Enable CardDAV&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;EnableCardDAV&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+      &lt;/tbody&gt;
+    &lt;/table&gt;
+
+
+    &lt;h2&gt;Data Store&lt;/h2&gt;
+
+    &lt;table&gt;
+      &lt;caption /&gt;
+      &lt;tbody&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Server Root&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;ServerRoot&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Data Source Name&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;EnableSSL&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot;&gt;
+            Database connection string.
+          &lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Attachment Quota (Bytes)&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;UserQuota&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Max # Collections Per Account&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;MaxCollectionsPerHome&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot;&gt;
+            Collections include calendars and address books.
+          &lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Max # Objects Per Collection&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;MaxResourcesPerCollection&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot;&gt;
+            Objects include events, to-dos and contacts.
+          &lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Max Object Size&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;MaxResourceSize&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+      &lt;/tbody&gt;
+    &lt;/table&gt;
+
+
+    &lt;h2&gt;Logging&lt;/h2&gt;
+
+    &lt;table&gt;
+      &lt;caption /&gt;
+      &lt;tbody&gt;
+        &lt;tr t:render=&quot;log_level_row&quot;&gt;
+          &lt;th class=&quot;config_key&quot;&gt;&lt;t:slot name=&quot;log_level_name&quot; /&gt;&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;log_level_value&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+      &lt;/tbody&gt;
+    &lt;/table&gt;
+
+
+    &lt;h2&gt;Process Management&lt;/h2&gt;
+
+    &lt;table&gt;
+      &lt;caption /&gt;
+      &lt;tbody&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;User Name&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;UserName&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Group Name&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;GroupName&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Process Type&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;ProcessType&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+&lt;!--
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Min Process Count&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;MultiProcess.MinProcessCount&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Max Process Count&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;MultiProcess.ProcessCount&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+ --&gt;
+        &lt;tr&gt;
+          &lt;th class=&quot;config_key&quot;&gt;Max Requests Per Process&lt;/th&gt;
+          &lt;td class=&quot;config_value&quot;&gt;&lt;t:slot name=&quot;MaxRequests&quot; /&gt;&lt;/td&gt;
+          &lt;td class=&quot;comment&quot; /&gt;
+        &lt;/tr&gt;
+      &lt;/tbody&gt;
+    &lt;/table&gt;
+
+
+  &lt;/body&gt;
+
+&lt;/html&gt;
</ins></span></pre></div>
<a id="CalendarServertrunkcalendarserverwebadminlandingpy"></a>
<div class="modfile"><h4>Modified: CalendarServer/trunk/calendarserver/webadmin/landing.py (12869 => 12870)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/calendarserver/webadmin/landing.py        2014-03-10 22:58:02 UTC (rev 12869)
+++ CalendarServer/trunk/calendarserver/webadmin/landing.py        2014-03-10 22:58:24 UTC (rev 12870)
</span><span class="lines">@@ -26,14 +26,9 @@
</span><span class="cx"> # from twisted.web.template import renderer
</span><span class="cx"> 
</span><span class="cx"> from .resource import PageElement, TemplateResource
</span><del>-from .logs import LogsResource
-from .principals import PrincipalsResource
-from .work import WorkMonitorResource
</del><span class="cx"> 
</span><del>-from . import logs, principals, work
</del><span class="cx"> 
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> class WebAdminLandingPageElement(PageElement):
</span><span class="cx">     &quot;&quot;&quot;
</span><span class="cx">     Web administration langing page element.
</span><span class="lines">@@ -61,14 +56,25 @@
</span><span class="cx">     def __init__(self, path, root, directory, store, principalCollections=()):
</span><span class="cx">         TemplateResource.__init__(self, WebAdminLandingPageElement)
</span><span class="cx"> 
</span><ins>+        from twistedcaldav.config import config as configuration
+
+        self.configuration = configuration
</ins><span class="cx">         self.directory = directory
</span><span class="cx">         self.store = store
</span><span class="cx">         # self._path = path
</span><span class="cx">         # self._root = root
</span><span class="cx">         # self._principalCollections = principalCollections
</span><span class="cx"> 
</span><ins>+        from .config import ConfigurationResource
+        self.putChild(u&quot;config&quot;, ConfigurationResource(configuration))
+
+        from .principals import PrincipalsResource
+        self.putChild(u&quot;principals&quot;, PrincipalsResource(directory))
+
+        from .logs import LogsResource
</ins><span class="cx">         self.putChild(u&quot;logs&quot;, LogsResource())
</span><del>-        self.putChild(u&quot;principals&quot;, PrincipalsResource(directory))
</del><ins>+
+        from .work import WorkMonitorResource
</ins><span class="cx">         self.putChild(u&quot;work&quot;, WorkMonitorResource(store))
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -85,14 +91,20 @@
</span><span class="cx">         # re-loaded for each request.
</span><span class="cx">         #
</span><span class="cx"> 
</span><del>-        if name == u&quot;logs&quot;:
-            reload(logs)
-            return logs.LogsResource()
</del><ins>+        from . import config, principals, logs, work
</ins><span class="cx"> 
</span><ins>+        if name == u&quot;config&quot;:
+            reload(config)
+            return config.ConfigurationResource(self.configuration)
+
</ins><span class="cx">         elif name == u&quot;principals&quot;:
</span><span class="cx">             reload(principals)
</span><span class="cx">             return principals.PrincipalsResource(self.directory)
</span><span class="cx"> 
</span><ins>+        elif name == u&quot;logs&quot;:
+            reload(logs)
+            return logs.LogsResource()
+
</ins><span class="cx">         elif name == u&quot;work&quot;:
</span><span class="cx">             reload(work)
</span><span class="cx">             return work.WorkMonitorResource(self.store)
</span></span></pre></div>
<a id="CalendarServertrunkcalendarserverwebadminlandingxhtml"></a>
<div class="modfile"><h4>Modified: CalendarServer/trunk/calendarserver/webadmin/landing.xhtml (12869 => 12870)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/calendarserver/webadmin/landing.xhtml        2014-03-10 22:58:02 UTC (rev 12869)
+++ CalendarServer/trunk/calendarserver/webadmin/landing.xhtml        2014-03-10 22:58:24 UTC (rev 12870)
</span><span class="lines">@@ -11,8 +11,12 @@
</span><span class="cx">     &lt;h1&gt;&lt;t:slot name=&quot;title&quot; /&gt;&lt;/h1&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;ul&gt;
</span><ins>+      &lt;li&gt;&lt;a href=&quot;config&quot;&gt;Server Configuration&lt;/a&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;a href=&quot;principals&quot;&gt;Principal Management&lt;/a&gt;&lt;/li&gt;
+    &lt;/ul&gt;
+
+    &lt;ul&gt;
</ins><span class="cx">       &lt;li&gt;&lt;a href=&quot;logs&quot;&gt;Server Logs&lt;/a&gt;&lt;/li&gt;
</span><del>-      &lt;li&gt;&lt;a href=&quot;principals&quot;&gt;Principal Management&lt;/a&gt;&lt;/li&gt;
</del><span class="cx">       &lt;li&gt;&lt;a href=&quot;work&quot;&gt;Workload Monitor&lt;/a&gt;&lt;/li&gt;
</span><span class="cx">     &lt;/ul&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>