Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ resource mainContainer 'Microsoft.Web/sites/sitecontainers@2024-11-01' = {
authType: 'UserAssigned'
image: api_containerimage
isMain: true
targetPort: api_containerport
userManagedIdentityClientId: infra_outputs_azure_container_registry_managed_identity_client_id
}
parent: webapp
Expand All @@ -55,6 +56,10 @@ resource webapp 'Microsoft.Web/sites@2024-11-01' = {
acrUseManagedIdentityCreds: true
acrUserManagedIdentityID: infra_outputs_azure_container_registry_managed_identity_client_id
appSettings: [
{
name: 'WEBSITES_PORT'
value: api_containerport
}
{
name: 'OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES'
value: 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ output name string = infra_asplan.name

output planId string = infra_asplan.id

output webSiteSuffix string = uniqueString(resourceGroup().id)

output AZURE_CONTAINER_REGISTRY_NAME string = infra_acr.name

output AZURE_CONTAINER_REGISTRY_ENDPOINT string = infra_acr.properties.loginServer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,18 @@ resource apiservice 'Microsoft.App/containerApps@2025-02-02-preview' = {
name: 'ConnectionStrings__blob'
value: storage_outputs_blobendpoint
}
{
name: 'FUNCAPP_HTTP'
value: 'http://funcapp.${env_outputs_azure_container_apps_environment_default_domain}'
}
{
name: 'services__funcapp__http__0'
value: 'http://funcapp.${env_outputs_azure_container_apps_environment_default_domain}'
}
{
name: 'FUNCAPP_HTTPS'
value: 'https://funcapp.${env_outputs_azure_container_apps_environment_default_domain}'
}
{
name: 'services__funcapp__https__0'
value: 'https://funcapp.${env_outputs_azure_container_apps_environment_default_domain}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@
"ConnectionStrings__cosmosdb": "{cosmosdb.connectionString}",
"ConnectionStrings__queue": "{queue.connectionString}",
"ConnectionStrings__blob": "{blob.connectionString}",
"FUNCAPP_HTTP": "{funcapp.bindings.http.url}",
"services__funcapp__http__0": "{funcapp.bindings.http.url}",
"FUNCAPP_HTTPS": "{funcapp.bindings.https.url}",
"services__funcapp__https__0": "{funcapp.bindings.https.url}"
},
"bindings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"env": {
"ASPNETCORE_ENVIRONMENT": "Production",
"services__nuget__https__0": "https://api.nuget.org/",
"NUGET": "https://api.nuget.org/",
"REVERSEPROXY__ROUTES__route0__MATCH__PATH": "/nuget/{**catchall}",
"REVERSEPROXY__ROUTES__route0__CLUSTERID": "cluster_nuget",
"REVERSEPROXY__ROUTES__route0__TRANSFORMS__0__PathRemovePrefix": "/nuget",
Expand All @@ -28,7 +28,9 @@
"REVERSEPROXY__ROUTES__route1__TRANSFORMS__0__PathRemovePrefix": "/external-service",
"REVERSEPROXY__CLUSTERS__cluster_nuget__DESTINATIONS__destination1__ADDRESS": "https://api.nuget.org/",
"REVERSEPROXY__CLUSTERS__cluster_external-service__DESTINATIONS__destination1__ADDRESS": "{external-service-url.value}",
"services__external-service__default__0": "{external-service-url.value}"
"services__nuget__https__0": "https://api.nuget.org/",
"services__external-service__default__0": "{external-service-url.value}",
"EXTERNAL-SERVICE": "{external-service-url.value}"
},
"bindings": {
"http": {
Expand All @@ -48,8 +50,10 @@
"OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY": "in_memory",
"ASPNETCORE_FORWARDEDHEADERS_ENABLED": "true",
"HTTP_PORTS": "{frontend.bindings.http.targetPort}",
"NUGET": "https://api.nuget.org/",
"services__nuget__https__0": "https://api.nuget.org/",
"EXTERNAL_SERVICE_URL": "{external-service-url.value}",
"GATEWAY_HTTP": "{gateway.bindings.http.url}",
"services__gateway__http__0": "{gateway.bindings.http.url}"
},
"bindings": {
Expand Down
8 changes: 7 additions & 1 deletion playground/TestShop/TestShop.AppHost/aspire-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,13 @@
"OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY": "in_memory",
"ASPNETCORE_FORWARDEDHEADERS_ENABLED": "true",
"HTTP_PORTS": "{frontend.bindings.http.targetPort}",
"BASKETSERVICE_HTTP": "{basketservice.bindings.http.url}",
"services__basketservice__http__0": "{basketservice.bindings.http.url}",
"BASKETSERVICE_HTTPS": "{basketservice.bindings.https.url}",
"services__basketservice__https__0": "{basketservice.bindings.https.url}",
"CATALOGSERVICE_HTTP": "{catalogservice.bindings.http.url}",
"services__catalogservice__http__0": "{catalogservice.bindings.http.url}",
"CATALOGSERVICE_HTTPS": "{catalogservice.bindings.https.url}",
"services__catalogservice__https__0": "{catalogservice.bindings.https.url}"
},
"bindings": {
Expand Down Expand Up @@ -238,7 +242,7 @@
],
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"services__catalogservice__http__0": "{catalogservice.bindings.http.url}",
"CATALOGSERVICE_HTTP": "{catalogservice.bindings.http.url}",
"REVERSEPROXY__ROUTES__route0__MATCH__PATH": "/catalog/{**catch-all}",
"REVERSEPROXY__ROUTES__route0__CLUSTERID": "cluster_catalogservice",
"REVERSEPROXY__ROUTES__route0__TRANSFORMS__0__PathRemovePrefix": "/catalog",
Expand All @@ -247,6 +251,8 @@
"REVERSEPROXY__ROUTES__route1__TRANSFORMS__0__PathRemovePrefix": "/basket",
"REVERSEPROXY__CLUSTERS__cluster_catalogservice__DESTINATIONS__destination1__ADDRESS": "http://_http.catalogservice",
"REVERSEPROXY__CLUSTERS__cluster_basketservice__DESTINATIONS__destination1__ADDRESS": "http://_http.basketservice",
"services__catalogservice__http__0": "{catalogservice.bindings.http.url}",
"BASKETSERVICE_HTTP": "{basketservice.bindings.http.url}",
"services__basketservice__http__0": "{basketservice.bindings.http.url}"
},
"bindings": {
Expand Down
6 changes: 6 additions & 0 deletions playground/keycloak/Keycloak.AppHost/aspire-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
"OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY": "in_memory",
"ASPNETCORE_FORWARDEDHEADERS_ENABLED": "true",
"HTTP_PORTS": "{apiservice.bindings.http.targetPort}",
"KEYCLOAK_HTTP": "{keycloak.bindings.http.url}",
"services__keycloak__http__0": "{keycloak.bindings.http.url}",
"KEYCLOAK_MANAGEMENT": "{keycloak.bindings.management.url}",
"services__keycloak__management__0": "{keycloak.bindings.management.url}"
},
"bindings": {
Expand All @@ -76,9 +78,13 @@
"OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY": "in_memory",
"ASPNETCORE_FORWARDEDHEADERS_ENABLED": "true",
"HTTP_PORTS": "{webfrontend.bindings.http.targetPort}",
"KEYCLOAK_HTTP": "{keycloak.bindings.http.url}",
"services__keycloak__http__0": "{keycloak.bindings.http.url}",
"KEYCLOAK_MANAGEMENT": "{keycloak.bindings.management.url}",
"services__keycloak__management__0": "{keycloak.bindings.management.url}",
"APISERVICE_HTTP": "{apiservice.bindings.http.url}",
"services__apiservice__http__0": "{apiservice.bindings.http.url}",
"APISERVICE_HTTPS": "{apiservice.bindings.https.url}",
"services__apiservice__https__0": "{apiservice.bindings.https.url}"
},
"bindings": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
"OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY": "in_memory",
"ASPNETCORE_FORWARDEDHEADERS_ENABLED": "true",
"HTTP_PORTS": "{frontend.bindings.http.targetPort}",
"API_HTTP": "{api.bindings.http.url}",
"services__api__http__0": "{api.bindings.http.url}",
"API_HTTPS": "{api.bindings.https.url}",
"services__api__https__0": "{api.bindings.https.url}"
},
"bindings": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY . .
RUN echo "Built at 20251017161737" > /build-info.txt
RUN echo "Built at 20251025161827" > /build-info.txt
RUN go build -o qots .

FROM alpine:latest
Expand Down
8 changes: 7 additions & 1 deletion playground/yarp/Yarp.AppHost/aspire-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,20 @@
],
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"services__frontend__http__0": "{frontend.bindings.http.url}",
"FRONTEND_HTTP": "{frontend.bindings.http.url}",
"REVERSEPROXY__ROUTES__route0__MATCH__PATH": "/{**catchall}",
"REVERSEPROXY__ROUTES__route0__CLUSTERID": "cluster_frontend",
"REVERSEPROXY__ROUTES__route1__MATCH__PATH": "/api/{**catch-all}",
"REVERSEPROXY__ROUTES__route1__CLUSTERID": "cluster_backend",
"REVERSEPROXY__ROUTES__route1__TRANSFORMS__0__PathRemovePrefix": "/api",
"REVERSEPROXY__CLUSTERS__cluster_frontend__DESTINATIONS__destination1__ADDRESS": "https\u002Bhttp://frontend",
"REVERSEPROXY__CLUSTERS__cluster_backend__DESTINATIONS__destination1__ADDRESS": "https\u002Bhttp://backend",
"services__frontend__http__0": "{frontend.bindings.http.url}",
"FRONTEND_HTTPS": "{frontend.bindings.https.url}",
"services__frontend__https__0": "{frontend.bindings.https.url}",
"BACKEND_HTTP": "{backend.bindings.http.url}",
"services__backend__http__0": "{backend.bindings.http.url}",
"BACKEND_HTTPS": "{backend.bindings.https.url}",
"services__backend__https__0": "{backend.bindings.https.url}"
},
"bindings": {
Expand Down Expand Up @@ -94,7 +98,9 @@
"REVERSEPROXY__ROUTES__route0__CLUSTERID": "cluster_backend",
"REVERSEPROXY__ROUTES__route0__TRANSFORMS__0__PathRemovePrefix": "/api",
"REVERSEPROXY__CLUSTERS__cluster_backend__DESTINATIONS__destination1__ADDRESS": "https\u002Bhttp://backend",
"BACKEND_HTTP": "{backend.bindings.http.url}",
"services__backend__http__0": "{backend.bindings.http.url}",
"BACKEND_HTTPS": "{backend.bindings.https.url}",
"services__backend__https__0": "{backend.bindings.https.url}"
},
"bindings": {
Expand Down