256 lines
8.5 KiB
Python
256 lines
8.5 KiB
Python
# sophie's miniserver
|
|
|
|
nodes['htz-cloud.miniserver'] = {
|
|
'bundles': {
|
|
'element-web',
|
|
'hedgedoc',
|
|
'matrix-media-repo',
|
|
'matrix-synapse',
|
|
'nodejs',
|
|
'ntfy',
|
|
'mautrix-telegram',
|
|
'phanpy',
|
|
'postgresql',
|
|
'zfs',
|
|
},
|
|
'groups': {
|
|
'debian-bookworm',
|
|
'webserver',
|
|
},
|
|
'metadata': {
|
|
'interfaces': {
|
|
'eth0': {
|
|
'ips': {
|
|
'157.90.20.62',
|
|
'2a01:4f8:c2c:840f::1/64',
|
|
},
|
|
'gateway4': '172.31.1.1',
|
|
'gateway6': 'fe80::1',
|
|
},
|
|
},
|
|
'apt': {
|
|
'packages': {
|
|
'mosh': {},
|
|
'weechat': {},
|
|
'weechat-core': {},
|
|
'weechat-curses': {},
|
|
'weechat-perl': {},
|
|
'weechat-plugins': {},
|
|
'weechat-python': {},
|
|
'weechat-ruby': {},
|
|
},
|
|
'repos': {
|
|
'weechat': {
|
|
'items': {
|
|
'deb https://weechat.org/debian {os_release} main',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'backup-client': {
|
|
'pre-hooks': {
|
|
'sophie-weechat': \
|
|
'echo \'core.weechat */layout store\' >> /home/sophie/.weechat/weechat_fifo\n' \
|
|
'echo \'core.weechat */save\' >> /home/sophie/.weechat/weechat_fifo\n',
|
|
},
|
|
'target': "htz-hel.backup-sophie",
|
|
},
|
|
'backups': {
|
|
'paths': {
|
|
'/home/sophie/.weechat',
|
|
},
|
|
},
|
|
'element-web': {
|
|
'url': 'chat.sophies-kitchen.eu',
|
|
'version': 'v1.11.46',
|
|
'config': {
|
|
'default_server_config': {
|
|
'm.homeserver': {
|
|
'base_url': 'https://matrix.sophies-kitchen.eu',
|
|
'server_name': 'sophies-kitchen.eu',
|
|
},
|
|
},
|
|
'brand': 'sophies-kitchen.eu',
|
|
'showLabsSettings': True,
|
|
'default_theme': 'dark',
|
|
'defaultCountryCode': 'DE',
|
|
'jitsi': {
|
|
'preferredDomain': 'meet.ffmuc.net',
|
|
},
|
|
'map_style_url': "https://api.maptiler.com/maps/openstreetmap/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
|
|
},
|
|
},
|
|
'hedgedoc': {
|
|
'version': '1.9.9',
|
|
'config': {
|
|
'production': {
|
|
'allowAnonymousEdits': True,
|
|
'domain': 'pad.sophies-kitchen.eu',
|
|
},
|
|
},
|
|
},
|
|
'icinga_options': {
|
|
'pretty_name': 'sophies-kitchen.eu',
|
|
'vars.notification.sms': False,
|
|
},
|
|
'letsencrypt': {
|
|
'concat_and_deploy': {
|
|
'sophie-weechat': {
|
|
'match_domain': 'i.sophies-kitchen.eu',
|
|
'target': '/home/sophie/.weechat/ssl/relay.pem',
|
|
'chown': 'sophie:sophie',
|
|
'chmod': '0440',
|
|
'commands': [
|
|
'echo \'core.weechat */relay sslcertkey\' >> /home/sophie/.weechat/weechat_fifo'
|
|
],
|
|
},
|
|
},
|
|
'domains': {
|
|
'i.sophies-kitchen.eu': set(),
|
|
'webdump.sophies-kitchen.eu': set(),
|
|
'matrix.sophies-kitchen.eu': {
|
|
'sophies-kitchen.eu',
|
|
},
|
|
},
|
|
},
|
|
'matrix-media-repo': {
|
|
'version': 'v1.3.2',
|
|
'datastore_id': '99c09e24edc4e9be6c4c9486bc147e385bc87044',
|
|
'sha1': '7a9976b09f6835171c610624f51b3cbf429bc0cf',
|
|
'homeservers': {
|
|
'sophies-kitchen.eu': {
|
|
'domain': 'http://[::1]:20080/',
|
|
'api': 'synapse',
|
|
},
|
|
},
|
|
'admins': {
|
|
'@sophie:sophies-kitchen.eu',
|
|
},
|
|
'upload_max_mb': 500,
|
|
},
|
|
'matrix-synapse': {
|
|
'server_name': 'sophies-kitchen.eu',
|
|
'baseurl': 'matrix.sophies-kitchen.eu',
|
|
'admin_contact': 'mailto:foobar@sophies-kitchen.eu',
|
|
'trusted_key_servers': {
|
|
'matrix.org',
|
|
},
|
|
},
|
|
'mautrix-telegram': {
|
|
'version': 'v0.14.2',
|
|
'homeserver': {
|
|
'domain': 'sophies-kitchen.eu',
|
|
'url': 'https://matrix.sophies-kitchen.eu',
|
|
},
|
|
'provisioning': {
|
|
'enabled': False,
|
|
'shared_secret': '""',
|
|
},
|
|
'permissions': {
|
|
'sophies-kitchen.eu': 'full',
|
|
"'@sophie:sophies-kitchen.eu'": 'admin',
|
|
},
|
|
'telegram': {
|
|
'api_id': vault.decrypt('encrypt$gAAAAABgnqdXhCTwtCXJhSaCZsiNfHPtjwlYtV1sUAux7JZdejN3xItU9RJLeNu4gUniv36XbBoxKwVtqqyV3RcAs-PgumcfYQ=='),
|
|
'api_token': vault.decrypt('encrypt$gAAAAABgnqd5IdpYRmW-C4ONBSXQfiJrpTVQX0rP0eKoDnLnVTLg-5olSjcw2gVvEKWLnsGEZIgVcG7yEs-sqYRxeiQLFFpSn-Z4We0mhj0CUeFoD-eXJsp-bAgLv9PJoMv5Gjb8r9i6'),
|
|
'bot_token': '""',
|
|
},
|
|
},
|
|
'nameservers': {
|
|
'213.133.98.98',
|
|
'213.133.99.99',
|
|
'213.133.100.100',
|
|
'2a01:4f8:0:1::add:1010',
|
|
'2a01:4f8:0:1::add:9999',
|
|
'2a01:4f8:0:1::add:9898',
|
|
},
|
|
'nftables': {
|
|
'input': {
|
|
'50-sophie-weechat': [
|
|
'udp dport { 60000-61000 } accept',
|
|
'tcp dport 9001 accept',
|
|
],
|
|
},
|
|
},
|
|
'nginx': {
|
|
'vhosts': {
|
|
'sophies-kitchen.eu': {
|
|
'webroot': '/var/www/sophies-kitchen.eu/_site/',
|
|
'extras': True,
|
|
},
|
|
'matrix-synapse': {
|
|
'domain': 'matrix.sophies-kitchen.eu',
|
|
},
|
|
'webdump.sophies-kitchen.eu': {
|
|
'webroot_config': {
|
|
'owner': 'sophie',
|
|
'group': 'sophie',
|
|
'mode': '0755',
|
|
},
|
|
'extras': True,
|
|
},
|
|
'recipes.sophies-kitchen.eu': {
|
|
'webroot_config': {
|
|
'owner': 'sophie',
|
|
'group': 'sophie',
|
|
'mode': '0755',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
'nodejs': {
|
|
'version': 18,
|
|
},
|
|
'ntfy': {
|
|
'domain': 'ntfy.sophies-kitchen.eu',
|
|
'allow_unauthorized_write': True,
|
|
},
|
|
'phanpy': {
|
|
'url': 'phanpy.sophies-kitchen.eu',
|
|
'version': '2023.10.07.9b1800d',
|
|
},
|
|
'postgresql': {
|
|
'version': '11',
|
|
},
|
|
'sysctl': {
|
|
'options': {
|
|
# XXX find out if this is really needed
|
|
'net.ipv4.ip_forward': '1',
|
|
'net.ipv6.conf.all.forwarding': '1',
|
|
},
|
|
},
|
|
'vm': {
|
|
'cpu': 2,
|
|
'ram': 4,
|
|
},
|
|
'users': {
|
|
'sophie': {
|
|
'enable_linger': True,
|
|
'ssh_pubkey': [
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDILcYrMQNRVXAm5L+7No1ZumqfCyRc1QZmTY3O7Q8hsE4+fCAvwsWm2aSMfLL3NnIl8Nm1Rixzic5jdYKYNIY3SlX1wvTB+MhGb2eyVSd7c/Y98aCLSlDkQ2sebjpdA1FoJOeGD3qxqDwj0+KckXU2ZaSSQY7CxVsjH65UxCHqVAg+6uLdNbj7j850s1B9NXVXef+sBQ5jUngXxnqQWwNh2Mn8auwumkeEG4SYf96wyFkLvmBitOng/GyLWl9YPnXXHHDnatcVipy7y34qw4CQ4P84anecbA+Bqr9IcxBW6qYmYgRKEnAcmEfjQd+BI1gCLB1BBEmb/qp+mVLd4tOh sophie@carbon"
|
|
],
|
|
},
|
|
},
|
|
'zfs': {
|
|
"datasets": {
|
|
"tank/webdump": {
|
|
"mountpoint": "/var/www/webdump.sophies-kitchen.eu",
|
|
"needed_by": [
|
|
"directory:/var/www/webdump.sophies-kitchen.eu"
|
|
]
|
|
}
|
|
},
|
|
'pools': {
|
|
'tank': {
|
|
'when_creating': {
|
|
'config': [{
|
|
'devices': {
|
|
'/dev/disk/by-id/scsi-0HC_Volume_23952298',
|
|
},
|
|
}]
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|