Spaces:
Paused
Paused
File size: 1,450 Bytes
8d1819a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | <html>
<head>
<title>Example secrets file</title>
</head>
<body>
<div x-data>
<p>You can store passwords and secrets in standard <code>.env</code> format, one per line.<br>
Add comments using <code>#</code> to help the agent understand the purpose of each secret.<br>
See example below.</p>
<h3>Example secrets file</h3>
<div id="secrets-example"></div>
<script>
setTimeout(() => {
const envExample = `# Sales email connection
SALES_EMAIL_IMAP_HOST="imap.company.com"
SALES_EMAIL_IMAP_PORT=993
SALES_EMAIL_IMAP_SSL=true
# Other email params
CHECK_INTERVAL=60 # check every X seconds
RETRY_INTERVAL=10 # retry every X seconds
MAX_RETRIES=3 # max retries
`;
const editor = ace.edit("secrets-example");
const dark = localStorage.getItem("darkMode");
if (dark != "false") {
editor.setTheme("ace/theme/github_dark");
} else {
editor.setTheme("ace/theme/tomorrow");
}
editor.session.setMode("ace/mode/ini");
editor.setValue(envExample);
editor.clearSelection();
editor.setReadOnly(true);
}, 0);
</script>
<!-- </template> -->
</div>
<style>
#secrets-example {
width: 100%;
height: 20em;
}
</style>
</body>
</html> |