diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 940093c91..48dabb2ee 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -27,6 +27,7 @@ jobs: - name: Build nginx and push on ECR run: | cd nginx + sed -i.bak -e '10,15d' conf.d/default.conf && rm conf.d/default.conf.bak sed -i "s|WEBSITE_URL|canopas.com|g" conf.d/default.conf sed -i "s|API_URL|prod-stack-api.canopas.com|g" conf.d/default.conf bash ./../deploy/deploy-ecr-image.sh prod-nginx ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-website-nginx diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index 11320aa8f..d268ea90a 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -7,6 +7,12 @@ server { proxy_pass http://canopas-website-frontend:3080; proxy_set_header Host $host; } + + location /resources { + proxy_ssl_server_name on; + proxy_pass https://articles.canopas.com; + proxy_set_header Host articles.canopas.com; + } } server { diff --git a/vue-frontend/src/components/contact/NewContactLanding.vue b/vue-frontend/src/components/contact/NewContactLanding.vue index 70ae949c3..cf4dc0a92 100644 --- a/vue-frontend/src/components/contact/NewContactLanding.vue +++ b/vue-frontend/src/components/contact/NewContactLanding.vue @@ -1,5 +1,5 @@