File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 13
13
from app .src .config import (
14
14
API_ENDPOINT_HOST ,
15
15
API_ENDPOINT_PORT ,
16
+ APP_DOCKER_PORT ,
16
17
DEBUG_MODE ,
17
18
PROJECT_NAME ,
18
19
API_V1_STR ,
@@ -77,8 +78,8 @@ def on_startup():
77
78
78
79
@app .get ("/" )
79
80
def index ():
80
- url_swagger = f"http://{ API_ENDPOINT_HOST } :{ API_ENDPOINT_PORT } /docs"
81
- url_redoc = f"http://{ API_ENDPOINT_HOST } :{ API_ENDPOINT_PORT } /redoc"
81
+ url_swagger = f"http://{ API_ENDPOINT_HOST } :{ APP_DOCKER_PORT } /docs"
82
+ url_redoc = f"http://{ API_ENDPOINT_HOST } :{ APP_DOCKER_PORT } /redoc"
82
83
body = (
83
84
"<html>"
84
85
"<body style='padding: 10px;'>"
Original file line number Diff line number Diff line change 10
10
11
11
12
12
# Set the application variables
13
- API_ENDPOINT_PORT : int = int (os .environ .get ("API_ENDPOINT_PORT" , 8042 ))
13
+ API_ENDPOINT_PORT : int = int (os .environ .get ("API_ENDPOINT_PORT" , 8000 ))
14
+ APP_DOCKER_PORT : int = int (os .environ .get ("APP_DOCKER_PORT" , 8042 ))
14
15
API_ENDPOINT_HOST : str = os .environ .get ("API_ENDPOINT_HOST" , "127.0.0.1" )
15
16
APP_SECRET_KEY : str = os .environ .get ("APP_SECRET_KEY" , "DEVtest42!!" )
16
17
APP_API_TOKEN : str = os .environ .get ("APP_API_TOKEN" , "PythonBiellaGroup" )
You can’t perform that action at this time.
0 commit comments