Skip to content

Commit

Permalink
switch domain
Browse files Browse the repository at this point in the history
  • Loading branch information
leej3 committed Aug 27, 2024
1 parent ee7cd76 commit 797f5be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion osm/pipeline/savers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion web/dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions web/deploy/docker-compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 797f5be

Please sign in to comment.