Skip to content

Commit

Permalink
Merge pull request #374 from canopas/make-seperate-blogs-url-for-dev-…
Browse files Browse the repository at this point in the history
…and-live

Feat: make seperate blogs url for dev and live
  • Loading branch information
cp-sumi-k authored May 1, 2023
2 parents 6828cda + 263c8fe commit 9565a79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
cd nginx
sed -i "s|WEBSITE_URL|dev-stack.canopas.com|g" conf.d/default.conf
sed -i "s|API_URL|dev-stack-api.canopas.com|g" conf.d/default.conf
sed -i "s|ARTICLES_URL|main.dzkjozipsd9ra.amplifyapp.com|g" conf.d/default.conf
bash ./../deploy/deploy-ecr-image.sh dev-nginx ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-website-nginx
- name: Build frontend and push on ECR
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
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
sed -i "s|ARTICLES_URL|articles.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
- name: Build frontend and push on ECR
Expand Down
4 changes: 2 additions & 2 deletions nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ server {

location /resources {
proxy_ssl_server_name on;
proxy_pass https://articles.canopas.com;
proxy_set_header Host articles.canopas.com;
proxy_pass https://ARTICLES_URL;
proxy_set_header Host ARTICLES_URL;
}
}

Expand Down

0 comments on commit 9565a79

Please sign in to comment.