diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 4578aeaf..a34f6fd7 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -386,7 +386,7 @@ services: - VACHAN_AI_BASEPATH=/v2/ai - VACHAN_DOMAIN=${VACHAN_DOMAIN:-http://localhost} - VACHAN_AI_DOMAIN=http://vachan-api - command: uvicorn main:app --host 0.0.0.0 --port 8006 + command: uvicorn main:app --host 0.0.0.0 --port 8008 volumes: - ${VACHAN_AI_DATA_PATH}/docker-volumes/ai-logs-vol:/app/logs - ${VACHAN_AI_DATA_PATH}/cache:/root/.cache @@ -398,9 +398,9 @@ services: - local-run - deployment expose: - - 8006 + - 8008 ports: - - "8006:8006" + - "8008:8008" networks: - VE-network container_name: vachan-ai diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 57a44be8..a9e07dc5 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -18,14 +18,15 @@ server { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; } + + location /v2/ai/ { + proxy_pass http://vachan-ai:8008; + } location /v2/auth/ { proxy_pass http://vachan-access:8007; } - - location /v2/ai/ { - proxy_pass http://vachan-ai:8006; - } + location /v2/cms/rest/ { proxy_pass http://vachan-cms-rest:8005; diff --git a/docker/nginx/prod/app.conf.template b/docker/nginx/prod/app.conf.template index b89e1da4..dabd3376 100644 --- a/docker/nginx/prod/app.conf.template +++ b/docker/nginx/prod/app.conf.template @@ -37,12 +37,12 @@ server { ssl_certificate_key /etc/nginx/ssl/live/${VACHAN_DOMAIN}/privkey.pem; - location /v2/auth/ { - proxy_pass http://vachan-access:8007; + location /v2/ai/ { + proxy_pass http://vachan-ai:8008; } - location /v2/ai/ { - proxy_pass http://vachan-ai:8006; + location /v2/auth/ { + proxy_pass http://vachan-access:8007; } location /v2/cms/rest/ {