Skip to content

Commit 6022bed

Browse files
committed
Updated database port, added redirect to nginx.conf, disabled release publish pipelines
1 parent fbf96b6 commit 6022bed

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎.github/workflows/build-deploy_asbnapp-dataapi.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
on:
1010
push:
11-
branches: [ 'main' ]
11+
# branches: [ 'main' ]
1212

1313
permissions:
1414
contents: read

‎.github/workflows/build-deploy_asbnapp-frontend.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: ASBNApp Frontend Azure Deployment
33

44
on:
55
push:
6-
branches: [ "main" ]
6+
# branches: [ "main" ]
77

88
# Environment variables available to all jobs and steps in this workflow
99
env:

‎compose.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

‎src/ASBNApp.Frontend/nginx.conf‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)