Skip to content

Commit 6f1cecd

Browse files
Fix Environment Variables
1 parent caf668e commit 6f1cecd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ This is a small demo project to quickly setup a mix of containerized micro-servi
1717
The project consists of
1818

1919
- An API Gateway, written in .NET Core, exposes port `8080`
20-
- A Radom Number Generator Service, written in .NET Core, exposes port `8080`
21-
- A Web Frontend, written in Angular, exposes port `8080`
20+
- A Radom Number Generator Service, written in .NET Core, exposes port `8090`
21+
- A Web Frontend, written in Angular, exposes port `5000`
2222

2323
## Make it run
2424

@@ -40,21 +40,21 @@ You need to set some environment variables to configure the services and their d
4040

4141
- `ApiKey=test123` _Optional: The key, that the API allows for authorization_
4242
- `RedisCacheConnectionString=...` _Optional: The connection string for a Redis Cache to sync SignalR Hubs_
43-
- `ApplicationInsightsConnectionString=...` _Optional: The Azure Application Insights Instrumentation Key_
43+
- `ApplicationInsightsConnectionString=...` _Optional: The Azure Application Insights Connection String_
4444
- `Cors` _Optional: The domain of your web app to add to the CORS_
4545
- `RandomApiUrl` _The URL to connect to the Random Service_
4646

4747
`MicroCommunication.Random`:
4848

4949
- `MongoDbConnectionString=mongo://...` _Optional: The connection string for a Mongo DB to store the history in_
50-
- `ApplicationInsightsConnectionString=...` _Optional: The Azure Application Insights Instrumentation Key_
50+
- `ApplicationInsightsConnectionString=...` _Optional: The Azure Application Insights Connection String_
5151
- `Cors` _Optional: The domain of your web app to add to the CORS_
5252

5353
`MicroCommunication.Web`:
5454

5555
- `API_URL=http://localhost:8080` _Where to find the API_
5656
- `API_KEY=test123` _Which key to use when calling the API_
57-
- `APPLICATION_INSIGHTS_INSTRUMENTATION_KEY=...` _Optional: The Azure Application Insights Instrumentation Key_
57+
- `APPLICATION_INSIGHTS_CONNECTION_STRING=...` _Optional: The Azure Application Insights Connection String_
5858

5959
## Deploy
6060

src/web/src/assets/appsettings.template.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
window["env"]["apiUrl"] = "${API_URL}";
55
window["env"]["apiKey"] = "${API_KEY}";
66
window["env"]["applicationInsightsConnectionString"] =
7-
"${APPLICATION_INSIGHTS_INSTRUMENTATION_KEY}";
7+
"${APPLICATION_INSIGHTS_CONNECTION_STRING}";
88
})(this);

0 commit comments

Comments
 (0)