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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ celerybeat-schedule
.cache/
start_dev.ps1
scripts
test.db

# coverage
.coverage
Expand Down
8 changes: 2 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,20 @@ DATABASE__USER=postgres
DATABASE__PASSWORD=your_secure_password
DATABASE__DB=deribit_tracker

DERIBIT_API__CLIENT_ID=your_client_id
DERIBIT_API__CLIENT_SECRET=your_client_secret
DERIBIT_API__BASE_URL=https://www.deribit.com/api/v2

REDIS__HOST=redis
REDIS__PORT=6379
REDIS__DB=0
REDIS__PASSWORD=your_secure_password_or_empty_for_local_dev
REDIS__PASSWORD=
REDIS__SSL=False

CELERY__WORKER_CONCURRENCY=2
CELERY__WORKER_CONCURRENCY=1
CELERY__BEAT_ENABLED=True
CELERY__TASK_TRACK_STARTED=True

APPLICATION__DEBUG=False
APPLICATION__API_V1_PREFIX=/api/v1
APPLICATION__PROJECT_NAME=Deribit Price Tracker API
APPLICATION__VERSION=0.3.0

CORS__ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]

Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,26 @@ jobs:
cat > .env << 'EOF'
DATABASE__HOST=localhost
DATABASE__PORT=5433
DATABASE__USER=test_user
DATABASE__PASSWORD=test_password
DATABASE__DB=test_db
DATABASE__USER=postgres
DATABASE__PASSWORD=your_secure_password
DATABASE__DB=deribit_tracker

DERIBIT_API__CLIENT_ID=test_client_id
DERIBIT_API__CLIENT_SECRET=test_client_secret
DERIBIT_API__BASE_URL=https://www.deribit.com/api/v2

REDIS__HOST=localhost
REDIS__HOST=redis
REDIS__PORT=6379
REDIS__DB=0
REDIS__PASSWORD=your_secure_password_or_empty_for_local_dev
REDIS__PASSWORD=
REDIS__SSL=False

CELERY__WORKER_CONCURRENCY=2
CELERY__BEAT_ENABLED=True
CELERY__TASK_TRACK_STARTED=True

APPLICATION__DEBUG=false
APPLICATION__DEBUG=False
APPLICATION__API_V1_PREFIX=/api/v1
APPLICATION__PROJECT_NAME=Deribit Price Tracker Test
APPLICATION__VERSION=1.0.0

CORS__ORIGINS=["http://localhost:8000"]
CORS__ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]

APP_PORT=8000
EOF
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ coverage.xml
pytest.xml
test-results/
*.log
test.db

# Python
__pycache__/
Expand Down
19 changes: 8 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,26 @@ before_script:
@'
DATABASE__HOST=localhost
DATABASE__PORT=5433
DATABASE__USER=test_user
DATABASE__PASSWORD=test_password
DATABASE__DB=test_db
DATABASE__USER=postgres
DATABASE__PASSWORD=your_secure_password
DATABASE__DB=deribit_tracker

DERIBIT_API__CLIENT_ID=test_client_id
DERIBIT_API__CLIENT_SECRET=test_client_secret
DERIBIT_API__BASE_URL=https://www.deribit.com/api/v2

REDIS__HOST=localhost
REDIS__HOST=redis
REDIS__PORT=6379
REDIS__DB=0
REDIS__PASSWORD=your_secure_password_or_empty_for_local_dev
REDIS__PASSWORD=
REDIS__SSL=False

CELERY__WORKER_CONCURRENCY=2
CELERY__BEAT_ENABLED=True
CELERY__TASK_TRACK_STARTED=True

APPLICATION__DEBUG=false
APPLICATION__DEBUG=False
APPLICATION__API_V1_PREFIX=/api/v1
APPLICATION__PROJECT_NAME=Deribit Price Tracker Test
APPLICATION__VERSION=1.0.0

CORS__ORIGINS=["http://localhost:8000"]
CORS__ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]

APP_PORT=8000
'@ | Out-File -FilePath .env -Encoding UTF8
Expand Down
66 changes: 4 additions & 62 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
{
"type": "Secret Keyword",
"filename": ".github\\workflows\\ci.yml",
"hashed_secret": "df842c49d8d3277a0170ffac5782a3cbe61b1feb",
"hashed_secret": "702f38878ff96df04408e2d68d2afc48c2c59717",
"is_verified": false,
"line_number": 31
},
Expand All @@ -136,7 +136,7 @@
"filename": ".github\\workflows\\ci.yml",
"hashed_secret": "dc5f72fcc64e44ece1aa8dfab21ddfce0fc8772b",
"is_verified": false,
"line_number": 106
"line_number": 103
}
],
"alembic.ini": [
Expand All @@ -163,67 +163,9 @@
"filename": "app\\core\\config.py",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 43
}
],
"tests\\test_config.py": [
{
"type": "Secret Keyword",
"filename": "tests\\test_config.py",
"hashed_secret": "e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4",
"is_verified": false,
"line_number": 32
},
{
"type": "Secret Keyword",
"filename": "tests\\test_config.py",
"hashed_secret": "c94d65f02a652d11c2e5c2e1ccf38dce5a076e1e",
"is_verified": false,
"line_number": 73
},
{
"type": "Basic Auth Credentials",
"filename": "tests\\test_config.py",
"hashed_secret": "c94d65f02a652d11c2e5c2e1ccf38dce5a076e1e",
"is_verified": false,
"line_number": 78
},
{
"type": "Secret Keyword",
"filename": "tests\\test_config.py",
"hashed_secret": "1adfce9fa4bc6b1cbdf95ac2dc6180175da7558b",
"is_verified": false,
"line_number": 89
},
{
"type": "Secret Keyword",
"filename": "tests\\test_config.py",
"hashed_secret": "72cb70dbbafe97e5ea13ad88acd65d08389439b0",
"is_verified": false,
"line_number": 121
},
{
"type": "Secret Keyword",
"filename": "tests\\test_config.py",
"hashed_secret": "ee27c133da056b1013f88c712f92460bc7b3c90a",
"is_verified": false,
"line_number": 129
},
{
"type": "Secret Keyword",
"filename": "tests\\test_config.py",
"hashed_secret": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
"is_verified": false,
"line_number": 240
},
{
"type": "Secret Keyword",
"filename": "tests\\test_config.py",
"hashed_secret": "fca268ae2442d5cabc3e12d87b349adf8bf7d76c",
"is_verified": false,
"line_number": 316
"line_number": 47
}
]
},
"generated_at": "2026-01-26T20:19:50Z"
"generated_at": "2026-01-29T14:55:03Z"
}
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ COPY . .

RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
USER appuser

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