interplane.Get Omega
Read in your language

spark-supervisor

Process supervisor and health monitor for sovereign daemons

Brought by drakestapleton

branch main Branches Tags History

spark-supervisor / services / allen-chat.svc.example

42 lines · 2109 bytes Raw Blame History
1# allen-chat: public gateway for www.aienos.com/allen/ (tailnet only, no credentials).
2# EXAMPLE: the real file carries the host's tailnet addresses and is kept out of this public
3# repository. Replace the documentation addresses (RFC 5737) before installing root-owned 0644 as
4# /etc/aien-supervise/services/allen-chat.svc:
5# 192.0.2.2 this host's tailnet address 192.0.2.3 the reverse proxy (hub)
6# 192.0.2.1, 192.0.2.4 the operator's devices (console listener only)
7# Directive-by-directive mapping and probes: docs/MIGRATION.md.
8exec /usr/bin/python3.12 -I /opt/allen-chat/allen_chat.py --listen 192.0.2.2:18110 --trusted-proxy 192.0.2.3 --upstream 127.0.0.1:18091 --system-prompt /opt/allen-chat/system-prompt.txt --catalog /var/lib/allen-catalog/catalog.txt --areas-file /var/lib/allen-catalog/areas.txt --omc /opt/allen-chat/omc --irwasm /opt/allen-chat/irwasm --spool-in /var/lib/allen-chat/spool-in --spool-status /var/lib/allen-chat/spool-status --contacts-drop /var/lib/allen-chat/contacts-drop --memory-url http://127.0.0.1:18096 --relay-drop /var/lib/allen-chat/relay-drop --console-listen 192.0.2.2:18112 --console-state /var/lib/allen-chat/console
9restart on-failure
10backoff 5 300
11user allen-chat
12groups allen-spool allen-drop allen-relaydrop
13envfile /etc/allen-chat/env
14env PATH=/usr/bin:/bin
15umask 0027
16nice 5
17ro /opt/allen-chat
18ro /var/lib/allen-catalog
19ro /var/lib/allen-chat/spool-status
20rw /var/lib/allen-chat/spool-in
21rw /var/lib/allen-chat/contacts-drop
22rw /var/lib/allen-chat/relay-drop
23rw /var/lib/allen-chat/console
24net filter
25allow 127.0.0.1
26allow 192.0.2.1
27allow 192.0.2.2
28allow 192.0.2.3
29allow 192.0.2.4
30net-default drop
31listen 18110 192.0.2.3 192.0.2.2 127.0.0.1
32listen 18112 192.0.2.1 192.0.2.4 192.0.2.2 127.0.0.1
33memory-max 1073741824
34tasks-max 128
35cpu-quota 200
36nofile 1024
37# The gateway runs bwrap itself for its compile sandbox: user namespaces stay creatable and the
38# filter adds @mount, unshare and setns (as SystemCallFilter=@system-service @mount unshare setns).
39namespaces yes
40syscalls @system-service @mount @ns
41families unix inet inet6 netlink
42mdwe yes