Skip to content

Commit 5b1e1b3

Browse files
chore: massive refactor (anti ai-slop)
1 parent 5d10e31 commit 5b1e1b3

44 files changed

Lines changed: 2145 additions & 2712 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,10 @@ LOG_LEVEL=INFO
2525
# Database URL (auto-constructed in Docker; set for local dev)
2626
# DATABASE_URL=postgresql://datalake:datalake@localhost:6543/datalake
2727

28-
# MT5 bridge (Wine-hosted RPC server running alongside MT5 terminal).
29-
# The bridge (scripts/mt5_bridge.py) is required for /ingest/refresh.
30-
# Inside Docker the host is reachable via host.docker.internal on Linux too
31-
# if you enable it in docker-compose (extra_hosts: ["host.docker.internal:host-gateway"]).
32-
MT5_BRIDGE_URL=http://host.docker.internal:18812
33-
MT5_BRIDGE_TIMEOUT=120
34-
# Shared secret sent in X-Bridge-Key; must match the value in
35-
# /etc/datalake/mt5-bridge-key on the VPS host. Empty = auth disabled (dev only).
36-
# python3 -c 'import secrets; print(secrets.token_urlsafe(24))'
37-
MT5_BRIDGE_KEY=
28+
# Broker timezone for CSV files with broker-local timestamps (e.g. MetaTrader exports).
29+
# Used during tick-file ingest to convert <DATE>/<TIME> columns to UTC.
30+
BROKER_TZ=Europe/Athens
31+
32+
# DuckDB memory limit for the timezone migration command (POST /catalog/migrate-timezone).
33+
# Defaults to DUCKDB_MEMORY_LIMIT if unset. Increase for large databases.
34+
# MIGRATION_MEMORY_LIMIT=4GB

deploy/datalake-backup.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ EnvironmentFile=/etc/datalake/api-key
1313
ExecStart=/usr/bin/curl --fail --silent --show-error --max-time 300 \
1414
-X POST \
1515
-H "X-API-Key: ${API_KEY}" \
16-
"https://datalake.example.com/api/backup/run?keep=8"
16+
"http://localhost/api/backup/run?keep=8"
1717
StandardOutput=journal
1818
StandardError=journal

deploy/datalake-refresh.service

Lines changed: 0 additions & 18 deletions
This file was deleted.

deploy/datalake-refresh.timer

Lines changed: 0 additions & 12 deletions
This file was deleted.

deploy/mt5-bridge.service

Lines changed: 0 additions & 25 deletions
This file was deleted.

deploy/mt5-terminal.service

Lines changed: 0 additions & 29 deletions
This file was deleted.

deploy/x11vnc.service

Lines changed: 0 additions & 13 deletions
This file was deleted.

deploy/xvfb.service

Lines changed: 0 additions & 15 deletions
This file was deleted.

docker-compose.prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
services:
22
postgres:
3+
# Pin to digest in production for reproducibility: postgres:16-alpine@sha256:<digest>
34
image: postgres:16-alpine
45
container_name: datalake-postgres
56
environment:

scripts/dedupe_offset_bars.py

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)