Skip to content

Commit 1d1ac7c

Browse files
fix: health checks (#27)
* fix: remove smalltalk * fix: smalltalk try 2 * Update .gitattributes * fix: removing smalltalk * fix: copy hook * feat: disable https redirection * fix: connection error * feat: status page, ssl changes * fix: remove crt * fix: minor bugs
1 parent 0740002 commit 1d1ac7c

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

docker/nginx/devstore.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server {
1111
server_name $hostname;
1212

1313
location /status {
14-
rewrite ^/status(.*)$ http://localhost:7510/status$1 redirect;
14+
rewrite ^/status(.*)$ http://localhost:7510/$1 redirect;
1515
}
1616
location / {
1717
proxy_pass http://web-mvc;
@@ -40,7 +40,7 @@ server {
4040
ssl_certificate /etc/nginx/nerdstore-certificate.pem;
4141
ssl_certificate_key /etc/nginx/nerdstore-certificate.key;
4242
location /status {
43-
rewrite ^/status(.*)$ https://localhost:7511/status$1 redirect;
43+
rewrite ^/status(.*)$ https://localhost:7511/$1 redirect;
4444
}
4545
location / {
4646
proxy_pass http://web-mvc;

src/api-gateways/DevStore.Bff.Checkout/appsettings.Production.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
}
2424
},
2525

26-
"ShoppingCartUrl": "https://devstore-api-cart",
27-
"CatalogUrl": "https://devstore-api-catalog",
28-
"CustomerUrl": "https://devstore-api-customers",
29-
"PaymentUrl": "https://devstore-api-billing",
30-
"OrderUrl": "https://devstore-api-order",
26+
"ShoppingCartUrl": "https://api-cart",
27+
"CatalogUrl": "https://api-catalog",
28+
"CustomerUrl": "https://api-customers",
29+
"PaymentUrl": "https://api-billing",
30+
"OrderUrl": "https://api-order",
3131

3232
"MessageQueueConnection": {
3333
"MessageBus": "host=devstore-rabbit:5672;publisherConfirms=true;timeout=30;username=devstore;password=devstore"
3434
},
3535
"AppSettings": {
36-
"JwksUri": "https://devstore-api-identity/jwks",
36+
"JwksUri": "https://api-identity/jwks",
3737
"Issuer": "https://devstore.academy",
3838
"Audience": "DevStore"
3939
}

src/building-blocks/DevStore.WebAPI.Core/Configuration/GenericHealthCheck.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using DevStore.Core.Utils;
22
using DevStore.WebAPI.Core.DatabaseFlavor;
33
using EasyNetQ;
4-
using EasyNetQ.ConnectionString;
5-
using HealthChecks.RabbitMQ;
64
using HealthChecks.UI.Client;
75
using Microsoft.AspNetCore.Builder;
86
using Microsoft.AspNetCore.Diagnostics.HealthChecks;

src/web/DevStore.WebApp.Status/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
app.MapHealthChecksUI(setup =>
6363
{
6464
setup.AddCustomStylesheet("devstore.css");
65-
setup.UIPath = "/status";
65+
setup.UIPath = "/";
66+
setup.PageTitle = "DevStore - Status";
6667
});
6768
app.Run();

src/web/DevStore.WebApp.Status/appsettings.Production.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"DefaultConnection": "Server=database-status;Database=DSStatus;MultipleActiveResultSets=true;User Id=sa;Password=MyDB@123"
2121
},
2222
"ENDPOINTS": [
23-
"Frontend Web;https://web-devstore-ecommerce/healthz-infra",
23+
"Frontend Web;https://web-devstore-ecommerce/healthz",
2424
"Identity API;https://api-identity/healthz-infra",
2525
"BFF Checkout;https://api-bff-checkout/healthz-infra",
2626
"Shopping Cart API;https://api-cart/healthz-infra",

0 commit comments

Comments
 (0)