-
Notifications
You must be signed in to change notification settings - Fork 2
/
spec.bu
276 lines (252 loc) · 10.2 KB
/
spec.bu
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
variant: fcos
version: 1.3.0
ignition:
config:
merge:
- local: host/base/spec.ign
- local: host/base/logging.ign
- local: service/redict/spec.ign
- local: service/mariadb/spec.ign
- local: service/nginx/spec.ign
- local: service/letsencrypt/spec.ign
- local: service/dovecot/spec.ign
- local: service/postfix/spec.ign
- local: service/rspamd/spec.ign
- local: service/prosody/spec.ign
- local: service/biboumi/spec.ign
- local: service/radicale/spec.ign
- local: service/rss2email/spec.ign
- local: service/coturn/spec.ign
- local: service/rclone/spec.ign
- local: service/prometheus/spec.ign
- local: service/grafana/spec.ign
- local: service/gitea/spec.ign
- local: service/slidge/spec.ign
- local: service/lldap/spec.ign
- local: service/gotosocial/spec.ign
- local: service/shiori/spec.ign
- local: service/unbound/spec.ign
passwd:
users:
- name: core
# Add SSH keys here if wanted.
# ssh_authorized_keys:
# - ecdsa-sha2-nistp521 AAAAE2VjZH...
systemd:
units:
# Enable auto-login for 'core' user.
- name: [email protected]
dropins:
- name: autologin-core.conf
contents: |
[Service]
ExecStart=
ExecStart=-/usr/sbin/agetty --autologin core --noclear %I $TERM
TTYVTDisallocate=no
# Don't auto-update our CoreOS configuration.
- name: zincati.service
mask: true
- name: coreos-home-server-update.timer
mask: true
- name: podman-auto-update.timer
mask: true
# Enable default web services.
- name: [email protected]
enabled: true
dropins:
- name: wait-for-nginx.conf
contents: |
[Unit]
- name: [email protected]
dropins:
- name: use-localhost-cert.conf
contents: |
[Unit]
[Service]
Environment=SSL_CERT_NAME=localhost
- name: [email protected]
enabled: true
dropins:
- name: populate-volume.conf
contents: |
[Service]
ExecStartPre=/bin/podman volume create --ignore static.localhost
ExecStartPre=/bin/sh -c "V=$(podman volume mount static.localhost) && echo 'Hello World!' > $V/index.html"
ExecStartPost=/bin/podman volume unmount static.localhost
- name: [email protected]
enabled: true
dropins:
- name: volume-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=nginx-serve-volume-static.localhost UPSTREAM_PORT=8080
- name: [email protected]
enabled: true
- name: [email protected]
enabled: true
- name: [email protected]
enabled: true
dropins:
- name: prosody-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=prosody UPSTREAM_PORT=5280
- name: [email protected]
enabled: true
dropins:
- name: radicale-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=radicale UPSTREAM_PORT=5232
- name: [email protected]
enabled: true
dropins:
- name: grafana-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=grafana UPSTREAM_PORT=8080
- name: [email protected]
enabled: true
dropins:
- name: gitea-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=gitea UPSTREAM_PORT=8080
- name: [email protected]
enabled: true
dropins:
- name: lldap-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=lldap UPSTREAM_PORT=8080
- name: [email protected]
enabled: true
dropins:
- name: gotosocial-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=gotosocial UPSTREAM_PORT=8080
- name: [email protected]
enabled: true
dropins:
- name: shiori-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=shiori UPSTREAM_PORT=8080
- name: [email protected]
enabled: true
dropins:
- name: rclone-upstream.conf
contents: |
[Service]
Environment=UPSTREAM_HOST=rclone-webdav UPSTREAM_PORT=8080
- name: [email protected]
enabled: true
dropins:
- name: use-local-files.conf
contents: |
[Service]
ExecStartPre=/bin/podman volume create --ignore letsencrypt-certificates
ExecStart=
ExecStart=/bin/sh -c "V=$(podman volume mount letsencrypt-certificates) && cp -Rv /etc/ssl/private/. $V && chown -R 10000:10000 $V"
ExecStartPost=/bin/podman volume unmount letsencrypt-certificates
storage:
files:
# Hostname for virtual host.
- path: /etc/hostname
mode: 0644
contents:
inline: coreos-virtual
# Load host-wide environment into default location.
- path: /etc/coreos-home-server/host.env
mode: 0600
contents:
local: virtual.env
# Tell systemd to not use a pager when printing information
- path: /etc/profile.d/systemd-pager.sh
mode: 0644
contents:
inline: |
export SYSTEMD_PAGER=cat
# Example sites for Nginx-PHP setup.
- path: /etc/coreos-home-server/php.localhost/Containerfile
mode: 0644
contents:
inline: |
FROM docker.io/php:7.4-fpm
RUN /bin/echo "<?php phpinfo();" > /srv/index.php
VOLUME /data /srv
- path: /etc/coreos-home-server/php.localhost/php.localhost.env
mode: 0644
contents:
inline: |
TEST_ENV=foobar
# Feed configuration for RSS2Email.
- path: /etc/coreos-home-server/rss2email/service/feeds/[email protected]
mode: 0644
contents:
inline: |
[feed.bbc]
url = https://feeds.bbci.co.uk/news/world/rss.xml
[feed.pluralistic]
url = https://pluralistic.net/feed/
# Include pre-generated certificates for localhost domain, as we're not using Let's Encrypt in
# generating certificates for the virtual host.
- path: /etc/ssl/private/localhost/fullchain.pem
mode: 0644
contents:
inline: |
-----BEGIN CERTIFICATE-----
MIIDLDCCAhSgAwIBAgIUGK5JYBMiDt7vXwpH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-----END CERTIFICATE-----
- path: /etc/ssl/private/localhost/privkey.pem
mode: 0644
contents:
inline: |
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC6W64ykzq5KcAI
bszZ5bcEuCwm+P/HG8g+i8kk6qRRnD/g9OCYsJAPb8jv1vv8iugnaTS2vm3vggNj
OscOZKVDkOsx031qx4lEvBiXfFklAhCB/yTG2NGD/0qR+yS7hM0NGbSdwXUcb9fn
D/8Cuj4qw/M5xNH5p1ZAwW5LUNGwtfKix1j9JnLOQ5jJ7r7hkpqTyFRiv7AgKCf6
/rNUqv4vLjtdnib0xjpqkKqjcI6869W9AwuLr6ahx0I4IOANIM8K3f1fu6Vmqe3b
v4GAsugB4nfFfEPOGRXyDuMrMwj3I+IyE9BJHB8A2mcnFRImUdtD63l2DKAPdkTA
/2ckEmllAgMBAAECggEBAKsd3eEgoY4+EM9tdfoqXRgfSKNsheg80WzlDAgy0DkD
oQAdulFZ5p3WBgp8PBtTLQJrLvUR/H4swpGN+hN0RO+6lMvGp2Wx3JBZqrcGfhBm
SeQj9JAFrLRoaP+MPNlWgrYhwWANsEwxQm0vmffWLZk1HhQQbsGvbpq9Qloz1qdL
hx7ub5S69vzCxOaGjqJRlqdHvk90U34w6uM1qBOZ2phxOtsB14Gt3+YDs6khSqAv
m2/0+Ac6nHKq9TxanrNRS8ZMBpEoiYMoc5F0uY+y876baNKCAeyfLuKd3tePJTvt
lko0uGNbyWzqk/z/hjsqVeD50IONUMN/pkUEX0xQ10ECgYEA8vl2rDg1kcZJLSBy
neIySYau7r/tq9VEMRKCDPYwrEWf5jdQxQvIuIwre1E79LjCqgzQe3yQCGduC4bS
LVaFX2hv3oncLMYQ3BP1p+YNqojZOQUFJcfALslr8W+iMH8E8JGnOjwAJMYXtPIQ
830HwiQfidVVx8ExEZMVlJ0nMJECgYEAxFk5ie+WDPKUvo1hVw0H7/xMSm8xp181
7aAIYR+qg5c0ncQx8yF1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