1
0
mirror of https://github.com/akpall/akpella.git synced 2026-02-21 08:36:59 +00:00
Files
akpella/config.yaml

98 lines
2.5 KiB
YAML

---
variant: flatcar
version: 1.0.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOpw3cIAdtWOYUkb6UOAIcLuRzItoo4oZMzr/hzZYq4E openpgp:0xFAAA0172
storage:
directories:
- path: /var/www/html
files:
# hostname
- path: /etc/hostname
contents:
inline: "akpella.lan"
# network
- path: /etc/systemd/network/00-eth0.network
contents:
inline: |
[Match]
Name=eth0
[Network]
DNS=1.1.1.1
Address=193.40.103.107/24
Gateway=193.40.103.1
- path: /etc/hosts
overwrite: true
contents:
inline: |
127.0.0.1 localhost akpella.lan
::1 localhost akpella.lan
- path: /etc/caddy/Caddyfile
contents:
inline: |
fst.ee {
root * /var/www/html
file_server
}
matrix.fst.ee {
reverse_proxy localhost:8008
}
- path: /var/www/html/index.html
contents:
inline: |
<h1>no</h1>
systemd:
units:
- name: systemd-sysupdate.timer
enabled: true
- name: matrixdotorg-synapse.service
enabled: true
contents: |
[Unit]
Description=Synapse: Matrix homeserver written in Python/Twisted + Rust
After=docker.service
Requires=docker.service
[Service]
ExecStartPre=/usr/bin/docker run \
--name=matrixdotorg-synapse \
--rm \
--mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_SERVER_NAME=matrix.fst.ee \
-e SYNAPSE_REPORT_STATS=yes \
matrixdotorg/synapse:latest generate
ExecStart=docker run \
--name=matrixdotorg-synapse \
--mount type=volume,src=synapse-data,dst=/data \
matrixdotorg/synapse:latest
[Install]
WantedBy=multi-user.target
- name: caddy.service
enabled: true
contents: |
[Unit]
Description=Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.
After=docker.service
Requires=docker.service
[Service]
ExecStart=docker run \
--name=caddy \
--mount type=bind,src=/etc/caddy,dst=/etc/caddy \
--mount type=bind,src=/var/www/html,dst=/var/www/html \
-p 80:80 \
-p 443:443 \
caddy:latest
[Install]
WantedBy=multi-user.target