File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99on :
1010 push :
11- branches : [ 'main' ]
11+ # branches: [ 'main' ]
1212
1313permissions :
1414 contents : read
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: ASBNApp Frontend Azure Deployment
33
44on :
55 push :
6- branches : [ "main" ]
6+ # branches: [ "main" ]
77
88# Environment variables available to all jobs and steps in this workflow
99env :
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
66 ACCEPT_EULA : " Y"
77 MSSQL_SA_PASSWORD : ${DB_SA_PASSWORD}
88 ports :
9- - " 9433 :1433"
9+ - " 7131 :1433"
1010 volumes :
1111 - sqlData:/var/opt/mssql
1212
@@ -16,11 +16,11 @@ services:
1616 context : ./src
1717 dockerfile : ASBNApp.DataAPI/Dockerfile
1818 ports :
19- - " 7132:80 "
19+ - " 7132:8080 "
2020 depends_on :
2121 - sql-server # Ensures the database starts before the API
2222 environment :
23- ConnectionStrings__DefaultConnection : ${API_CONNECTIONSTRING}
23+ ConnectionStrings__DatabaseConnection : ${API_CONNECTIONSTRING}
2424 restart : unless-stopped
2525
2626 asbnapp-frontend :
@@ -29,7 +29,7 @@ services:
2929 context : ./src
3030 dockerfile : ASBNApp.Frontend/Dockerfile
3131 ports :
32- - " 9478 :80"
32+ - " 7133 :80"
3333 environment :
3434 ApiUrl : ${FE_APIURL}
3535 depends_on :
Original file line number Diff line number Diff line change @@ -6,4 +6,10 @@ server {
66 index index .html;
77 try_files $uri $uri / /index .html =404 ; # This is the key line for Blazor routing
88 }
9+
10+ # backend redirects
11+ location /api/ {
12+ proxy_pass http ://192.168.178.158:7132 /api/;
13+ proxy_http_version 1.1;
14+ }
915}
You can’t perform that action at this time.
0 commit comments