From 797f5bee3a12827f33482d87a365f80f1236320b Mon Sep 17 00:00:00 2001 From: leej3 Date: Tue, 27 Aug 2024 16:39:21 +0100 Subject: [PATCH] switch domain --- osm/pipeline/savers.py | 2 +- web/dashboard/app.py | 2 +- web/deploy/docker-compose.yaml.j2 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osm/pipeline/savers.py b/osm/pipeline/savers.py index fc7a3b12..2f264736 100644 --- a/osm/pipeline/savers.py +++ b/osm/pipeline/savers.py @@ -80,7 +80,7 @@ def _run(self, data: bytes, metrics: dict, components: list[schemas.Component]): metrics: Schema conformant metrics. components: parsers, extractors, and savers that constitute the pipeline. """ - osm_api = os.environ.get("OSM_API", "https://osm.pythonaisolutions.com/api") + osm_api = os.environ.get("OSM_API", "https://opensciencemetrics.org/api") print(f"Using OSM API: {osm_api}") # Build the payload try: diff --git a/web/dashboard/app.py b/web/dashboard/app.py index 3a828f33..f0a493ed 100644 --- a/web/dashboard/app.py +++ b/web/dashboard/app.py @@ -126,7 +126,7 @@ def serve(self): profiler="pyinstrument", allow_websocket_origin=[ "localhost:8501", - "osm.pythonaisolutions.com", + "opensciencemetrics.org", ], static_dirs={ dir: str(Path(__file__).parent / dir) diff --git a/web/deploy/docker-compose.yaml.j2 b/web/deploy/docker-compose.yaml.j2 index aa43b653..8381ca2a 100644 --- a/web/deploy/docker-compose.yaml.j2 +++ b/web/deploy/docker-compose.yaml.j2 @@ -11,7 +11,7 @@ services: labels: - traefik.enable=true - traefik.docker.network=osm_traefik-public - - traefik.http.routers.osm_web_api.rule=Host(`osm.pythonaisolutions.com`) && PathPrefix(`/api`) + - traefik.http.routers.osm_web_api.rule=Host(`opensciencemetrics.org`) && PathPrefix(`/api`) - "traefik.http.routers.osm_web_api.entrypoints=web,websecure" - traefik.http.services.osm_web_api.loadbalancer.server.port=80 # use the "le" (Let's Encrypt) resolver to get Let's Encrypt certificates @@ -29,7 +29,7 @@ services: labels: - traefik.enable=true - traefik.docker.network=osm_traefik-public - - traefik.http.routers.dashboard.rule=Host(`osm.pythonaisolutions.com`) + - traefik.http.routers.dashboard.rule=Host(`opensciencemetrics.org`) - traefik.http.routers.dashboard.entrypoints=web,websecure # use the "le" (Let's Encrypt) resolver to get Let's Encrypt certificates - traefik.http.routers.dashboard.tls=true