Commit 97e88f33 authored by George Papathanail's avatar George Papathanail
Browse files

Refactored edge cloud API, updated configs and requirements

parent 993ace0b
Loading
Loading
Loading
Loading

.env.sample

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
MONGO_URI=mongodb://username:password@localhost:27017/sample_db
PI_EDGE_BASE_URL=http://example.com/api
PI_EDGE_USERNAME=username
PI_EDGE_PASSWORD=password
HTTP_PROXY=https://company.proxy:3128
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ WORKDIR /usr/src/app

COPY requirements.txt /usr/src/app/

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt

COPY . /usr/src/app

+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@ from edge_cloud_management_api.app import get_app_instance

if __name__ == "__main__":
    app = get_app_instance()
    app.run(host="127.0.0.1", port=8080)
    app.run(host="0.0.0.0", port=8080)
+1 −1
Original line number Diff line number Diff line
@@ -17,4 +17,4 @@ def get_app_instance() -> FlaskApp:

if __name__ == "__main__":
    app = get_app_instance()
    app.run(host="127.0.0.1", port=8080)
    app.run(host="0.0.0.0", port=8080)
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ load_dotenv()

class Configuration(BaseSettings):
    MONGO_URI: str = os.getenv("MONGO_URI")
    PI_EDGE_BASE_URL: str = os.getenv("PI_EDGE_BASE_URL")
    SRM_HOST: str = os.getenv("SRM_HOST")
    PI_EDGE_USERNAME: str = os.getenv("PI_EDGE_USERNAME")
    PI_EDGE_PASSWORD: str = os.getenv("PI_EDGE_PASSWORD")
    HTTP_PROXY: str = os.getenv("HTTP_PROXY")
Loading