OLD | NEW |
1 {% set title = 'Isolate global config' %} | 1 {% set title = 'Isolate global config' %} |
2 {% extends "isolate/base.html" %} | 2 {% extends "isolate/base.html" %} |
3 | 3 |
| 4 {% block headers %} |
| 5 <script> |
| 6 function onclick_ts_mon() { |
| 7 document.getElementById("enable_ts_monitoring_hidden").disabled = |
| 8 document.getElementById("enable_ts_monitoring").checked; |
| 9 } |
| 10 </script> |
| 11 {% endblock %} |
| 12 |
4 {% block body %} | 13 {% block body %} |
5 <h1>Server global config</h1> | 14 <h1>Server global config</h1> |
6 | 15 |
7 Last updated by: | 16 Last updated by: |
8 <strong>{% if cfg.updated_by %}{{cfg.updated_by.to_bytes()}}{% else%}N/A{%endif%
} | 17 <strong>{% if cfg.updated_by %}{{cfg.updated_by.to_bytes()}}{% else%}N/A{%endif%
} |
9 </strong>.<br> | 18 </strong>.<br> |
10 Last updated on: <strong>{{cfg.updated_ts|datetimeformat}}</strong>.<br> | 19 Last updated on: <strong>{{cfg.updated_ts|datetimeformat}}</strong>.<br> |
11 | 20 |
12 {% if note %} | 21 {% if note %} |
13 <span style="color: red; font-style: italic">{{note}}</span><p> | 22 <span style="color: red; font-style: italic">{{note}}</span><p> |
14 {% endif %} | 23 {% endif %} |
15 | 24 |
16 <form method="post" action="{{path}}"> | 25 <form method="post" action="{{path}}"> |
17 <h2>General</h2> | 26 <h2>General</h2> |
18 Google Analytics ID: | 27 Google Analytics ID: |
19 <input name="google_analytics" value="{{cfg.google_analytics}}"/><br> | 28 <input name="google_analytics" value="{{cfg.google_analytics}}"/><br> |
20 | 29 |
21 <h2>Cache</h2> | 30 <h2>Cache</h2> |
22 <div> | 31 <div> |
23 Default expiration (secs):<br /> | 32 Default expiration (secs):<br /> |
24 <input type="text" name="default_expiration" | 33 <input type="text" name="default_expiration" |
25 value="{{cfg.default_expiration}}" size="60" /> | 34 value="{{cfg.default_expiration}}" size="60" /> |
26 </div> | 35 </div> |
| 36 <h2>Timeseries Monitoring</h2> |
| 37 <div> |
| 38 Enable: <input id="enable_ts_monitoring" type="checkbox" name="enable_ts_moni
toring" value="True" onclick="onclick_ts_mon()" {% if cfg.enable_ts_monitoring %
}checked{% endif %}> |
| 39 <input id="enable_ts_monitoring_hidden" type="hidden" name="enable_ts_monitor
ing" value="False"> |
| 40 </div> |
27 <h2>Google storage</h2> | 41 <h2>Google storage</h2> |
28 See this <a href="https://developers.google.com/storage/docs/accesscontrol#Abo
ut-the-Client-ID"> | 42 See this <a href="https://developers.google.com/storage/docs/accesscontrol#Abo
ut-the-Client-ID"> |
29 page</a> for instructions on how to setup Service account for API Access to | 43 page</a> for instructions on how to setup Service account for API Access to |
30 Google Storage. | 44 Google Storage. |
31 <p> | 45 <p> |
32 <div> | 46 <div> |
33 Google Storage Bucket:<br /> | 47 Google Storage Bucket:<br /> |
34 <input type="text" name="gs_bucket" value="{{cfg.gs_bucket}}" size="60" /> | 48 <input type="text" name="gs_bucket" value="{{cfg.gs_bucket}}" size="60" /> |
35 </div> | 49 </div> |
36 <br> | 50 <br> |
(...skipping 25 matching lines...) Expand all Loading... |
62 # Convert *.pem into *.der. | 76 # Convert *.pem into *.der. |
63 openssl rsa -in secret.pem -inform PEM -out secret.der -outform DER | 77 openssl rsa -in secret.pem -inform PEM -out secret.der -outform DER |
64 # Base64 encode *.der and copy-paste it into the form above. | 78 # Base64 encode *.der and copy-paste it into the form above. |
65 cat secret.der | base64 | 79 cat secret.der | base64 |
66 # Remove temp files. | 80 # Remove temp files. |
67 rm secret.der secret.pem | 81 rm secret.der secret.pem |
68 </pre> | 82 </pre> |
69 </p> | 83 </p> |
70 | 84 |
71 {% endblock %} | 85 {% endblock %} |
OLD | NEW |