Skip to content

Commit 6f64147

Browse files
committed
feat: add custom domains and cache refresh API key to web template
1 parent 9c85d10 commit 6f64147

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

AppHost/infra/web.tmpl.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ properties:
1717
targetPort: {{ targetPortOrDefault 8080 }}
1818
transport: http
1919
allowInsecure: false
20+
customDomains:
21+
- name: copilotthatjawn.com
22+
bindingType: SniEnabled
23+
certificateId: /subscriptions/09153f92-3cbc-46f1-8872-1683749eda4b/resourceGroups/rg-copilotthatjawn/providers/Microsoft.App/managedEnvironments/cae-uanpydy4xv63a/managedCertificates/copilotthatjawn.com-cae-uanp-250608192822
24+
- name: www.copilotthatjawn.com
25+
bindingType: SniEnabled
26+
certificateId: /subscriptions/09153f92-3cbc-46f1-8872-1683749eda4b/resourceGroups/rg-copilotthatjawn/providers/Microsoft.App/managedEnvironments/cae-uanpydy4xv63a/managedCertificates/www.copilotthatjawn.com-cae-uanp-250608193349
2027
registries:
2128
- server: {{ .Env.AZURE_CONTAINER_REGISTRY_ENDPOINT }}
2229
identity: {{ .Env.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID }}
@@ -25,6 +32,8 @@ properties:
2532
value: '{{ securedParameter "redis" }}'
2633
- name: connectionstrings--tables
2734
value: '{{ .Env.AZURE_STORAGE_TABLEENDPOINT }}'
35+
- name: cacherefresh--apikey
36+
value: '{{ .Env.CACHE_REFRESH_API_KEY }}'
2837
template:
2938
containers:
3039
- image: {{ .Image }}
@@ -46,6 +55,8 @@ properties:
4655
secretRef: connectionstrings--redis
4756
- name: ConnectionStrings__tables
4857
secretRef: connectionstrings--tables
58+
- name: CacheRefresh__ApiKey
59+
secretRef: cacherefresh--apikey
4960
scale:
5061
minReplicas: 1
5162
tags:

0 commit comments

Comments
 (0)