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