Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrofisr committed Jun 30, 2024
1 parent 5c48780 commit c33de52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ jobs:

- name: Change backend stream NGINX config
run: |
sed -i 's|backend:4000|${{ steps.deploy-cloud-run-back.outputs.url }}|g' nginx.conf
DOMAIN=$(echo ${{ steps.deploy-cloud-run-back.outputs.url }} | cut -d'/' -f3)
sed -i 's|backend:4000|'${DOMAIN}'|g' ./nginx.conf
sed -i 's|http://backend|https://'${DOMAIN}'|g' ./nginx.conf
cat ./nginx.conf
- name: Build and push Docker image Frontend
id: build-push-front
Expand Down
1 change: 1 addition & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ http {

location /api {
proxy_pass http://backend;
proxy_ssl_verify off;
}
}
}
Expand Down

0 comments on commit c33de52

Please sign in to comment.