-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.yaml
96 lines (96 loc) · 2.61 KB
/
setup.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: redlib
apiVersion: '2023-05-01'
location: <azure region>
tags: {}
properties:
containers:
- name: redlib
properties:
image: quay.io/redlib/redlib:latest
ports:
- port: 8080
protocol: TCP
environmentVariables:
- name: REDLIB_ROBOTS_DISABLE_INDEXING
value: 'on'
- name: REDLIB_DEFAULT_THEME
value: 'dark'
- name: REDLIB_DEFAULT_FRONT_PAGE
value: 'default'
- name: REDLIB_DEFAULT_LAYOUT
value: 'card'
- name: REDLIB_DEFAULT_WIDE
value: 'on'
- name: REDLIB_DEFAULT_POST_SORT
value: 'new'
- name: REDLIB_DEFAULT_COMMENT_SORT
value: 'top'
- name: REDLIB_DEFAULT_SHOW_NSFW
value: 'on'
- name: REDLIB_DEFAULT_BLUR_NSFW
value: 'off'
- name: REDLIB_DEFAULT_USE_HLS
value: 'on'
- name: REDLIB_DEFAULT_HIDE_HLS_NOTIFICATION
value: 'on'
- name: REDLIB_DEFAULT_AUTOPLAY_VIDEOS
value: 'off'
- name: REDLIB_DEFAULT_SUBSCRIPTIONS
value: ''
- name: REDLIB_DEFAULT_HIDE_AWARDS
value: 'off'
- name: REDLIB_DEFAULT_DISABLE_VISIT_REDDIT_CONFIRMATION
value: 'off'
- name: REDLIB_DEFAULT_HIDE_SCORE
value: 'off'
- name: REDLIB_DEFAULT_FIXED_NAVBAR
value: 'on'
resources:
requests:
cpu: 3
memoryInGB: 1
- name: caddy
properties:
image: caddy:latest
command:
[
'caddy',
'run',
'--config',
'/srv/Caddyfile',
]
ports:
- port: 80
protocol: TCP
- port: 443
protocol: TCP
resources:
requests:
cpu: 1
memoryInGB: 1
volumeMounts:
- mountPath: /srv
name: srv
imageRegistryCredentials: []
restartPolicy: Always
ipAddress:
dnsNameLabel: <dns label>
fqdn: <dns label>.<azure region>.azurecontainer.io
ports:
- port: 80
protocol: TCP
- port: 443
protocol: TCP
type: Public
osType: Linux
volumes:
- name: srv
azureFile:
sharename: redlib
storageAccountName: <storage account name>
storageAccountKey: <storage account key>
# secret:
# Caddyfile: <cat Caddyfile | base64 | xclip -selection clipboard>
# ca.cert: <cat certs/ca.cert | base64 | xclip -selection clipboard>
sku: Standard
initContainers: []