Loading .env.sampledeleted 100644 → 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 Dockerfile +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading edge_cloud_management_api/__main__.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) edge_cloud_management_api/app.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) edge_cloud_management_api/configs/env_config.py +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
.env.sampledeleted 100644 → 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
Dockerfile +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
edge_cloud_management_api/__main__.py +1 −1 Original line number Diff line number Diff line Loading @@ -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)
edge_cloud_management_api/app.py +1 −1 Original line number Diff line number Diff line Loading @@ -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)
edge_cloud_management_api/configs/env_config.py +1 −1 Original line number Diff line number Diff line Loading @@ -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