-
Notifications
You must be signed in to change notification settings - Fork 0
/
containerapp.yaml
47 lines (47 loc) · 1.42 KB
/
containerapp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
type: Microsoft.Web/containerApps
tags: {}
kind: containerapp
location: <azure region>
name: whoogle
properties:
kubeEnvironmentId: "/subscriptions/<SUBSCRIPTIONS>/resourceGroups/<RESOURCE GROUP>/providers/Microsoft.Web/kubeEnvironments/whoogle-containerapp-env"
configuration:
activeRevisionsMode: single
ingress:
external: true
allowInsecure: false
targetPort: 8080
transport: auto
template:
containers:
- name: whoogle
image: benbusby/whoogle-search:latest
env:
# port 8080 will be wired to Azure Container Apps ingress
- name: EXPOSE_PORT
value: '8080'
- name: WHOOGLE_AUTOCOMPLETE
value: '1'
# hide config from UI
- name: WHOOGLE_CONFIG_DISABLE
value: '1'
# UI langueage and search languages
- name: WHOOGLE_CONFIG_LANGUAGE
value: 'lang_zh-TW'
- name: WHOOGLE_CONFIG_SEARCH_LANGUAGE
value: 'lang_en%7Clang_zh-TW%7Clang_ja'
# blocked sites (comma separate list)
- name: WHOOGLE_CONFIG_BLOCK
value: 'kknews.cc'
- name: WHOOGLE_CONFIG_THEME
value: 'dark'
- name: WHOOGLE_CONFIG_NEW_TAB
value: '1'
- name: WHOOGLE_CONFIG_VIEW_IMAGE
value: '1'
resources:
cpu: 0.5
memory: 1Gi
scale:
minReplicas: 1
maxReplicas: 1