Skip to content

Commit

Permalink
allow configuration of AMARILLO_BASEURL
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Mar 21, 2024
1 parent aa696d1 commit 036fd0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions amarillo/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging.config

from amarillo.configuration import configure_services, configure_admin_token
from amarillo.services.config import config

logging.config.fileConfig('logging.conf', disable_existing_loggers=False)
logger = logging.getLogger("main")
Expand Down Expand Up @@ -48,6 +49,10 @@
},
}],
servers=[
{
"description": "This service",
"url": config.amarillo_baseurl
},
{
"description": "MobiData BW Amarillo service",
"url": "https://amarillo.mobidata-bw.de"
Expand All @@ -63,10 +68,6 @@
{
"description": "Dev server for development",
"url": "https://amarillo-dev.mfdz.de"
},
{
"description": "Localhost for development",
"url": "http://localhost:8000"
}
],
redoc_url=None
Expand Down
1 change: 1 addition & 0 deletions amarillo/services/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


class Config(BaseSettings):
amarillo_baseurl: str = 'http://localhost:8000/'
admin_token: str
ride2go_query_data: str
env: str = 'DEV'
Expand Down

0 comments on commit 036fd0c

Please sign in to comment.