A session alone could change the password, switch the second factor on or off, send the key of the language model to another address and remove the rules that stop purchases. Each now needs the password and the code, with one limit on wrong attempts that a restart of the services does not clear, and the other sessions end when the password or the factor changes. Requests to the brokers pass a list of allowed calls, never follow a redirect with a key and are signed by one client only. Pages are closed by default, nothing is cached, requests are limited to 1 MB, secrets are masked in logs and notifications, exported tables cannot run as formulas, archives carry no sessions and the container refuses to run as root. refs #68 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
6.3 KiB
XML
47 lines
6.3 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Anubis: bozza del template Docker per Unraid (si completa nella Fase 9).
|
|
L'immagine e' pubblicata nel registry dei pacchetti di Gitea, sotto l'organizzazione BalboSoft.
|
|
Copia il file in /boot/config/plugins/dockerMan/templates-user/ e scegli
|
|
"anubis" tra i template nella scheda Docker di Unraid.
|
|
-->
|
|
<Container version="2">
|
|
<Name>anubis</Name>
|
|
<Repository>gitea.encke-hake.ts.net/balbosoft/anubis:latest</Repository>
|
|
<Registry>https://gitea.encke-hake.ts.net/BalboSoft/-/packages/container/anubis/latest</Registry>
|
|
<Network>bridge</Network>
|
|
<Shell>sh</Shell>
|
|
<Privileged>false</Privileged>
|
|
<Support>https://gitea.encke-hake.ts.net/BalboSoft/Anubis/issues</Support>
|
|
<Project>https://gitea.encke-hake.ts.net/BalboSoft/Anubis</Project>
|
|
<Overview>Anubis è un bot di trading personale: azioni USA su Alpaca e crypto spot su OKX Europe, senza leva. Parte in simulazione e passa ai soldi veri solo con requisiti misurati e la conferma dell'utente. Il database si sceglie qui: PostgreSQL (un database vuoto, già creato, con un utente dedicato) oppure SQLite (un file nella cartella dei dati).</Overview>
|
|
<Category>Tools:Utilities Status:Beta</Category>
|
|
<WebUI>http://[IP]:[PORT:8787]/</WebUI>
|
|
<TemplateURL/>
|
|
<Icon>https://gitea.encke-hake.ts.net/BalboSoft/Anubis/raw/branch/main/deploy/unraid/anubis-icon.png</Icon>
|
|
<ExtraParams>--restart unless-stopped --memory=4g --stop-timeout 60</ExtraParams>
|
|
<Requires>Con PostgreSQL: un database vuoto e un utente dedicato, raggiungibili dal container.</Requires>
|
|
|
|
<Config Name="Porta dell'interfaccia" Target="8787" Default="8787" Mode="tcp" Description="Porta su cui si apre l'interfaccia web." Type="Port" Display="always" Required="true" Mask="false">8787</Config>
|
|
<Config Name="Cartella dei dati" Target="/data" Default="/mnt/user/appdata/anubis" Mode="rw" Description="Modelli, salvataggi, storico per la ricerca e registri tecnici. Con SQLite contiene anche il database." Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/anubis</Config>
|
|
|
|
<Config Name="Database" Target="ANUBIS_DB_ENGINE" Default="postgres|sqlite" Mode="" Description="postgres: usa il server PostgreSQL indicato nei campi qui sotto. sqlite: un file nella cartella dei dati, senza altri campi da compilare. La scelta si fa qui e non si cambia dall'interfaccia." Type="Variable" Display="always" Required="true" Mask="false">postgres</Config>
|
|
<Config Name="PostgreSQL: indirizzo" Target="ANUBIS_DB_HOST" Default="" Mode="" Description="Solo con postgres. Di solito l'indirizzo IP di Unraid; il nome del container PostgreSQL se i due stanno sulla stessa rete Docker personalizzata." Type="Variable" Display="always" Required="false" Mask="false"></Config>
|
|
<Config Name="PostgreSQL: porta" Target="ANUBIS_DB_PORT" Default="5432" Mode="" Description="Solo con postgres." Type="Variable" Display="always" Required="false" Mask="false">5432</Config>
|
|
<Config Name="PostgreSQL: nome del database" Target="ANUBIS_DB_NAME" Default="anubis" Mode="" Description="Solo con postgres. Deve esistere già ed essere dedicato a Anubis." Type="Variable" Display="always" Required="false" Mask="false">anubis</Config>
|
|
<Config Name="PostgreSQL: utente" Target="ANUBIS_DB_USER" Default="anubis" Mode="" Description="Solo con postgres." Type="Variable" Display="always" Required="false" Mask="false">anubis</Config>
|
|
<Config Name="PostgreSQL: password" Target="ANUBIS_DB_PASSWORD" Default="" Mode="" Description="Solo con postgres." Type="Variable" Display="always" Required="false" Mask="true"></Config>
|
|
|
|
<Config Name="Chiave dei segreti" Target="ANUBIS_SECRET_KEY" Default="" Mode="" Description="Stringa lunga e casuale, almeno 32 caratteri: cifra nel database le chiavi dei conti. Conservala: se cambia, le chiavi vanno reinserite." Type="Variable" Display="always" Required="true" Mask="true"></Config>
|
|
<Config Name="Password iniziale" Target="ANUBIS_ADMIN_PASSWORD" Default="" Mode="" Description="Password per il primo accesso all'interfaccia, dove se ne sceglie subito una nuova. Resta la chiave per le scelte della pagina d'errore del database." Type="Variable" Display="always" Required="true" Mask="true"></Config>
|
|
<Config Name="Fuso orario" Target="TZ" Default="Europe/Rome" Mode="" Description="Il tuo fuso orario: decide gli orari mostrati, il giorno dei limiti di rischio e i lavori notturni." Type="Variable" Display="always" Required="false" Mask="false">Europe/Rome</Config>
|
|
|
|
<Config Name="Soldi veri consentiti" Target="ANUBIS_ALLOW_LIVE" Default="0|1" Mode="" Description="0: il bot non può collegarsi a conti reali, qualunque cosa si faccia dall'interfaccia. 1: la procedura di conferma per i soldi veri diventa disponibile." Type="Variable" Display="advanced" Required="false" Mask="false">0</Config>
|
|
<Config Name="Telegram: token del bot" Target="TELEGRAM_BOT_TOKEN" Default="" Mode="" Description="Facoltativo: si può inserire anche dall'interfaccia. Se lo compili qui, l'interfaccia lo mostra in sola lettura." Type="Variable" Display="advanced" Required="false" Mask="true"></Config>
|
|
<Config Name="Telegram: chat autorizzata" Target="TELEGRAM_CHAT_ID" Default="" Mode="" Description="Facoltativo: identificativo della chat che riceve gli avvisi e può dare comandi." Type="Variable" Display="advanced" Required="false" Mask="false"></Config>
|
|
<Config Name="Segnale di vita" Target="ANUBIS_HEARTBEAT_URL" Default="" Mode="" Description="Facoltativo: indirizzo di un servizio esterno da chiamare ogni minuto, che avvisa quando il bot smette di rispondere." Type="Variable" Display="advanced" Required="false" Mask="true"></Config>
|
|
<Config Name="Utente (PUID)" Target="PUID" Default="99" Mode="" Description="Utente a cui va la cartella dei dati e con cui gira l'applicazione. 99 è il valore normale su Unraid." Type="Variable" Display="advanced" Required="false" Mask="false">99</Config>
|
|
<Config Name="Gruppo (PGID)" Target="PGID" Default="100" Mode="" Description="Gruppo a cui va la cartella dei dati. 100 è il valore normale su Unraid." Type="Variable" Display="advanced" Required="false" Mask="false">100</Config>
|
|
<Config Name="Database: indirizzo completo" Target="ANUBIS_DB_URL" Default="" Mode="" Description="Facoltativo, per casi particolari: sostituisce i campi PostgreSQL separati." Type="Variable" Display="advanced" Required="false" Mask="true"></Config>
|
|
</Container>
|