Skip to content

Commit 900830d

Browse files
authored
Bugfix/fix aws postgres endpoint (#1933)
* do not constrain the endpoint
1 parent 2faf8ab commit 900830d

File tree

2 files changed

+2
-4
lines changed
  • packages/models-library/src/models_library/settings
  • services/web/server/src/simcore_service_webserver

2 files changed

+2
-4
lines changed

packages/models-library/src/models_library/settings/postgres.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77

88
class PostgresSettings(BaseSettings):
9-
dns: Optional[PostgresDsn] = None
10-
119
# entrypoint
1210
host: str
1311
port: PortInt = 5432

services/web/server/src/simcore_service_webserver/db_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import trafaret as T
99
from aiohttp.web import Application
10-
from pydantic import BaseSettings, constr
10+
from pydantic import BaseSettings
1111
from typing import Optional
1212

1313
from models_library.settings.postgres import PostgresSettings
@@ -25,7 +25,7 @@
2525

2626

2727
class PgSettings(PostgresSettings):
28-
endpoint: Optional[constr(strip_whitespace=True, regex=r"\w+:\d+")] = None
28+
endpoint: Optional[str] = None # TODO: PC remove or deprecate that one
2929

3030
class Config:
3131
fields = {"db": "database"}

0 commit comments

Comments
 (0)