Skip to content

Commit

Permalink
comments & config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellenn-A committed May 20, 2024
1 parent 9d6fe53 commit 5d2986e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM python:3.12-slim
LABEL MAINTAINER Digital Catapult
# LABEL org.opencontainers.image.source=https://github.com/CDECatapult/soniclabs-resultsmanager

WORKDIR /app

Expand Down
11 changes: 11 additions & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os

from pydantic import BaseSettings


class AppSettings(BaseSettings):
VERITABLE_URL: str = os.getenv("VERITABLE_URL", "http://localhost:3010")
PEER_URL: str = os.getenv("PEER_URL", "http://localhost:3001/api")


settings = AppSettings()
5 changes: 3 additions & 2 deletions app/routes/posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
from typing import Any, List, Optional

import httpx
from core.config import settings
from fastapi import APIRouter, HTTPException
from fastapi.responses import JSONResponse
from pydantic import BaseModel
from uagents import Model

veritableUrl = "http://localhost:3010"
peerUrl = "http://localhost:3001/api"
veritableUrl = settings.VERITABLE_URL
peerUrl = settings.PEER_URL


class Query(BaseModel):
Expand Down

0 comments on commit 5d2986e

Please sign in to comment.