Skip to content

Commit

Permalink
🐛 add apple-app-site-association
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxvik-xakerxxx committed Jun 24, 2024
1 parent 6190eed commit 8cff405
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .helm/templates/configmap.yam
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "template.fullname" . }}-config
labels:
{{- include "template.labels" . | nindent 4 }}
data:
apple-app-site-association: |-
{
"applinks": {
"details": [
{
"appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ],
"components": [
{
"#": "no_universal_links",
"exclude": true,
"comment": "Matches any URL with a fragment that equals no_universal_links and instructs the system not to open it as a universal link."
},
{
"/": "/buy/*",
"comment": "Matches any URL with a path that starts with /buy/."
},
{
"/": "/help/website/*",
"exclude": true,
"comment": "Matches any URL with a path that starts with /help/website/ and instructs the system not to open it as a universal link."
},
{
"/": "/help/*",
"?": { "articleNumber": "????" },
"comment": "Matches any URL with a path that starts with /help/ and that has a query item with name 'articleNumber' and a value of exactly four characters."
}
]
}
]
},
"webcredentials": {
"apps": [ "ABCDE12345.com.example.app" ]
},


"appclips": {
"apps": ["ABCED12345.com.example.MyApp.Clip"]
}
}

8 changes: 8 additions & 0 deletions .helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
serviceAccountName: {{ include "template.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
- name: association
configMap:
name: {{ include "template.fullname" . }}-config
{{- if .Values.config.create }}
volumes:
- name: config
Expand All @@ -41,6 +45,10 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: association
mountPath: "/usr/share/nginx/html/.well-known/apple-app-site-association"
subPath: apple-app-site-association
{{- if .Values.config.create }}
volumeMounts:
- name: config
Expand Down

0 comments on commit 8cff405

Please sign in to comment.