Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.git
.gitignore
__pycache__
*.pyc
*.bak*
.env
.env.*
*_private_key*
*.key
*.pem
.aws/
.vscode/
.idea/
.pytest_cache/
htmlcov/
.coverage
node_modules/
reviews/
data/
logs/
backups/
wallet/
49 changes: 49 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# ============================================================
# MolTrust API — Environment Variables
# Copy to .env and fill in values before running
# ============================================================

# --- REQUIRED ---
MOLTRUST_API_KEYS=your_api_key_1,your_api_key_2

# --- Database ---
DATABASE_URL=postgresql://moltstack:password@localhost/moltstack
DB_HOST=localhost
DB_NAME=moltstack
MOLTSTACK_DB_PW=

# --- Cryptographic Signing (choose one) ---
# Option 1 (recommended): AWS KMS encrypted key
DID_PRIVATE_KEY_ENCRYPTED=
KMS_KEY_ID=
AWS_REGION=eu-central-1
# Option 2 (development only): hex-encoded Ed25519 private key
# DID_PRIVATE_KEY_HEX=

# --- Blockchain (Base L2) ---
BASE_WALLET_KEY=
BASE_WRITE_KEY=
BASE_RPC=https://mainnet.base.org
BASE_ADDR=

# --- Admin ---
ADMIN_KEY=
NONCE_SECRET=

# --- GitHub OAuth ---
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

# --- Moltbook ---
MOLTBOOK_APP_KEY=

# --- SMTP (Email) ---
SMTP_HOST=mail.infomaniak.com
SMTP_PORT=587
[email protected]
SMTP_PASS=

# --- Optional Services ---
CREDITS_ENABLED=false
APIFOOTBALL_KEY=
BASESCAN_WEBHOOK_SECRET=
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Environment & Secrets
.env
.env.*
*.env
!.env.example
.secret
*_private_key*
*.key
Expand All @@ -11,6 +11,11 @@
.aws/
aws-credentials

# Backup files
*.bak
*.bak2
*.bak3

# Python
__pycache__/
*.pyc
Expand Down
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.12-slim

WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential libffi-dev \
&& rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
Loading