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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
|
Tasks
=====
.. _bc537812-5f9d-4760-8c95-9ae933ecbd57:
TODO Try running on the Raspberry Pi
------------------------------------
- TODO in 2020-01-12
a b c
- DONE in 2020-01-02
xu pliuw
nest
~~~~
#. woeifj
#. woeifj
.. _ac19877b-55e3-48c8-8c3a-071124d23cd2:
TODO Use custom README converter
--------------------------------
- TODO in 2021-01-12
----
Convert ``README`` file using markdown instead of plain text.
.. _92d8ad8d-df93-49c1-8393-eb7147326c29:
DONE Add index.html on built website
------------------------------------
- State "DONE" from [2020-12-02 mer. 15:47]
Generate index.html from README.md. Done in
:commit:6d95acf144a4f2e48cb603af3a8032c172ceb53e .
- State "TODO" from [2020-12-02 mer. 15:41]
.. _dee378cd-9e41-402b-9018-e9ebb05ef75d:
TODO Test Guix deploy
---------------------
- State "TODO" from [2020-12-02 mer. 17:21]
.. _d76d4d2c-f07e-420b-8f30-28eb258494a6:
TODO External volume
--------------------
- State "TODO" from [2020-11-30 lun. 01:19]
.. code:: hcl
variable "storage_name" {
type = string
description = "Name of the block storage volume, which will also be the name of it's mount point."
}
resource "vultr_block_storage" "vps_storage" {
size_gb = 10
region_id = 9
attached_id = vultr_server.vps_server.id
label = var.storage_name
live = "yes"
}
.. _708bcd4f-4574-4227-8737-fcb10621f1ec:
TODO Backups
------------
- State "TODO" from [2020-11-30 lun. 01:19]
If possible, put every data subfolder under the same folder, and just
backup the top-level folder. This also allows me to put it on an
external volum and grow it more easily.
No real need to backup cgit, Jekyll, documetation and Cuirass, but
useful to have if available.
The certificates should be backed up, so that restoring doesn't involve
re-creating everything from scratch.
.. _email:
TODO Email
~~~~~~~~~~
- State "TODO" from [2020-11-30 lun. 01:20]
.. _matrix:
TODO Matrix
~~~~~~~~~~~
- State "TODO" from [2020-11-30 lun. 01:19]
.. _certificates:
TODO Certificates
~~~~~~~~~~~~~~~~~
- State "TODO" from [2020-11-30 lun. 01:19]
::
/etc/letsencrypt
.. _5f0457af-49dc-4122-83ff-a0604e3c6a02:
TODO Monitoring
---------------
- State "TODO" from [2020-11-30 lun. 01:20]
- https://mmonit.com/monit/
- https://collectd.org/
Reports via email.
.. _ee160451-cfe8-49b2-a71f-6f1dca02cb9d:
TODO Intrusion prevention and detection
---------------------------------------
- State "TODO" from [2020-11-30 lun. 01:20]
- http://www.fail2ban.org/wiki/index.php/Main_Page
- http://rkhunter.sourceforge.net/
.. _f8a54acf-a417-4957-ac13-21df9a57ed4c:
TODO Security review
--------------------
- State "TODO" from [2020-11-30 lun. 01:20]
https://cheatsheetseries.owasp.org/Glossary.html
.. _7d57aa50-597e-4a86-b9d7-c2d84f53e1c6:
TODO Build new Guix image and document the steps
------------------------------------------------
- State "TODO" from [2020-11-29 dim. 02:10]
Instead of syncing the ``.bashrc`` file, I should put my aliases in the
base image.
Setup custom SSH port in the base image itself.
.. _43a7a634-84ec-41de-b243-c27fd4a44c25:
TODO Setup cgit
---------------
- State "TODO" from [2020-11-30 lun. 01:20]
- setup ``README`` file rendering
- force redirect HTTPS
- permanent redirect www and everything else to non-www
.. _dd3f2bc7-8d6d-4bab-9a5e-d3211115e4f4:
TODO Add email mcron job report
-------------------------------
- State "TODO" from [2020-11-29 dim. 20:21]
Bugs
====
Improvements
============
Services
========
.. _git.tld-cgit:
TODO ``git.$tld``: cgit
-----------------------
.. _project.tld-static-documentation-for-projects:
TODO ``$project.$tld``: static documentation for projects
---------------------------------------------------------
.. _ci.tld-single-static-html-ci-page:
TODO ``ci.$tld``: single static HTML CI page
--------------------------------------------
.. _mail.tld-email:
TODO ``mail.$tld``: email
-------------------------
.. _chat.tld-matrixxmpp:
TODO ``chat.$tld``: Matrix/XMPP
-------------------------------
https://news.ycombinator.com/item?id=25669864
.. _meet.tld-jitsinextcloud-talk:
TODO ``meet.$tld``: Jitsi/Nextcloud Talk
----------------------------------------
.. _tld-jekyll-blog:
TODO ``$tld``: Jekyll blog
--------------------------
Decisions
=========
.. _d38019ac-a2ad-484d-91e5-f4bdb1fa00ca:
DONE On public SSH key leakage
------------------------------
CLOSED: [2020-11-29 dim. 00:27]
- State "DONE" from [2020-09-06 dim. 00:00]
As described in "`Public SSH keys can leak your private
infrastructure <https://rushter.com/blog/public-ssh-keys/>`__", public
SSH keys can expose undesired infrastructure, specially for targeted
attacks.
I'm not considering this a threat, since the link between the server and
e is already public. It may be much more effective to just change the
SSH port away from the default: it doesn't accomplish the same thing,
but it prevents simple detections. It is still possible to find this out
via a script, but is orders of magnitute harder for the attacker.
.. _de89fc4e-5c36-4f6b-9227-221b70e9f321:
DONE Matrix over XMPP
---------------------
CLOSED: [2020-11-29 dim. 00:29]
- State "DONE" from [2020-11-29 dim. 00:29]
I'm picking Matrix. Not because of the protocol or anything else, but
because it has the two relevant double-puppeting bridges:
mautrix-telegram and mautrix-whatsapp.
TBH I like XMPP much more, but without working puppeting bridges, I
would stay isolated with it, which would defeat the purpose of having a
chat server on the first place.
Maybe an XMPP double-puppeting bridge could allow me to use an XMPP
client to talk with Telegram and WhatsApp chats.
Resources
=========
https://framagit.org/tyreunom/system-configuration/
---------------------------------------------------
https://framagit.org/Jeko/guix-machine-os-ynm/
----------------------------------------------
Scrath
======
Server requiremets:
- Guix for CI
- NGINX
- CGit, Git, Git Annex
- Prosody for XMPP
- Synapse for Matrix
- OpenSMTPD, Dovecot for email
NGINX settings:
- HTTP2
- gzip
- cache everything
# mutt
- configure in ~/annex/bin/misc/mail/
# VPS
- setup chat servers: XMPP and Matrix
|