diff --git a/bats_ai/settings.py b/bats_ai/settings.py index 65d107e..d83fdbc 100644 --- a/bats_ai/settings.py +++ b/bats_ai/settings.py @@ -13,11 +13,6 @@ from composed_configuration._configuration import _BaseConfiguration from configurations import values -CORS_ALLOWED_ORIGINS = [ - 'http://localhost:3000', - 'http://localhost', -] - class BatsAiMixin(ConfigMixin): WSGI_APPLICATION = 'bats_ai.wsgi.application' diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index e902f9b..eedaaf0 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -2,34 +2,34 @@ version: '3.8' services: # COMMENTED OUT UNTIL READY TO TEST - # traefik: - # restart: always - # command: > - # --log.level=${LOG_LEVEL:-DEBUG} - # --providers.docker=true - # --providers.docker.exposedByDefault=false - # --providers.file.filename=/var/traefik/dynamic.yml - # --entrypoints.web.address=:80 - # --entrypoints.websecure.address=:443 - # --entrypoints.websecure.http.tls.certresolver=myresolver - # --certificatesresolvers.myresolver.acme.email=${ACME_EMAIL:-Bryon.Lewis@kitware.com} - # --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json - # --certificatesresolvers.myresolver.acme.httpchallenge=true - # --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web - # --certificatesresolvers.myresolver.acme.caserver=${ACME_CA_SERVER:-https://acme-staging-v02.api.letsencrypt.org/directory} - # labels: - # # 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.middlewares=redirect-to-https-mddl@docker" - # - "traefik.http.middlewares.redirect-to-https-mddl.redirectscheme.scheme=https" - # volumes: - # - "./traefik/letsencrypt:/letsencrypt" - # - "./traefik/dynamic.yml:/var/traefik/dynamic.yml:ro" - # ports: - # - "80:80" - # - "443:443" + traefik: + restart: always + command: > + --log.level=${LOG_LEVEL:-DEBUG} + --providers.docker=true + --providers.docker.exposedByDefault=false + --providers.file.filename=/var/traefik/dynamic.yml + --entrypoints.web.address=:80 + --entrypoints.websecure.address=:443 + --entrypoints.websecure.http.tls.certresolver=myresolver + --certificatesresolvers.myresolver.acme.email=${ACME_EMAIL:-Bryon.Lewis@kitware.com} + --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json + --certificatesresolvers.myresolver.acme.httpchallenge=true + --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web + --certificatesresolvers.myresolver.acme.caserver=${ACME_CA_SERVER:-https://acme-staging-v02.api.letsencrypt.org/directory} + labels: + # 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.middlewares=redirect-to-https-mddl@docker" + - "traefik.http.middlewares.redirect-to-https-mddl.redirectscheme.scheme=https" + volumes: + - "./traefik/letsencrypt:/letsencrypt" + - "./traefik/dynamic.yml:/var/traefik/dynamic.yml:ro" + ports: + - "80:80" + - "443:443" django: build: