Skip to content

Commit

Permalink
updating hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Feb 20, 2024
1 parent 3ef3cdb commit e0d2d65
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion bats_ai/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ class KitwareConfiguration(BatsAiMixin, _BaseConfiguration):
MINIO_STORAGE_AUTO_CREATE_MEDIA_POLICY = 'READ_WRITE'
MINIO_STORAGE_MEDIA_USE_PRESIGNED = True
MINIO_STORAGE_MEDIA_URL = 'http://127.0.0.1:9000/django-storage'
ALLOWED_HOSTS = ['batai.kitware.com']
ALLOWED_HOSTS = ['batdetectai.kitware.com']


class ProductionConfiguration(BatsAiMixin, ProductionBaseConfiguration):
pass


class HerokuProductionConfiguration(BatsAiMixin, HerokuProductionBaseConfiguration):
pass
4 changes: 2 additions & 2 deletions client/.env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VUE_APP_API_ROOT=http://batai.kitware.com/api/v1
VUE_APP_OAUTH_API_ROOT=http://batai.kitware.com/oauth/
VUE_APP_API_ROOT=http://batdetectai.kitware.com/api/v1
VUE_APP_OAUTH_API_ROOT=http://batdetectai.kitware.com/oauth/
VUE_APP_OAUTH_CLIENT_ID=HSJWFZ2cIpWQOvNyCXyStV9hiOd7DfWeBOCzo4pP
4 changes: 2 additions & 2 deletions dev/.env.prod.docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ DJANGO_MINIO_STORAGE_ACCESS_KEY=minioAccessKey
DJANGO_MINIO_STORAGE_SECRET_KEY=minioSecretKey
DJANGO_STORAGE_BUCKET_NAME=django-storage
DJANGO_MINIO_STORAGE_ENDPOINT=minio:9000
DJANGO_CORS_ORIGIN_WHITELIST=http://batai.kitware.com
DJANGO_CORS_ORIGIN_WHITELIST=http://batdetectai.kitware.com
DJANGO_EMAIL_URL=submission://USER:[email protected]
DJANGO_ALLOWED_HOSTS=['batai.kitware.com']
DJANGO_ALLOWED_HOSTS=['batdetectai.kitware.com']
3 changes: 1 addition & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
# Traefik HTTPS Redirect
- "traefik.enable=true"
- "traefik.http.routers.http-catchall.entrypoints=web"
- "traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.http-catchall.rule=Host('batai.kitware.com')"
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https-mddl@docker"
- "traefik.http.middlewares.redirect-to-https-mddl.redirectscheme.scheme=https"
volumes:
Expand Down Expand Up @@ -95,7 +95,6 @@ services:
- "traefik.http.routers.client-rtr.rule=Host(`batai.kitware.com`)"
- "traefik.enable=true"
- "traefik.http.services.client-svc.loadbalancer.server.port=80"
- "traefik.http.routers.client-rtr.rule=HostRegexp(`{catchall:.*}`)"
postgres:
image: postgis/postgis:latest
environment:
Expand Down

0 comments on commit e0d2d65

Please sign in to comment.