gateway: run simplex-chat in bot mode, not relay/headless

In v7 --headless means "chat relay" (requires --relay) and yields a relay
address, not a user contact address, so the bot could not be added as a
contact. Run bot mode instead (-p PORT --create-bot-display-name), which needs
no TTY and is restart-safe. simplex-address.py now creates the user contact
address on first run (/_address + /_show_address), and bootstrap invokes it
after the services start and prints the link.
This commit is contained in:
Denton Social committed 2026-09-26 18:33:57 -05:00
1 parent 5ee3905aec
commit 6059bec1e4
4 files changed
+67 -29

No files matched your search

+5 -2
View File
@@ -1,11 +1,14 @@
[Unit]
Description=SemIf agent SimpleX Chat daemon
Description=SemIf agent SimpleX Chat bot daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=@REPO@/.runtime/bin/simplex-chat -p @PORT@ -d @REPO@/.runtime/simplex/simplex_v1 -k "" --relay --headless --user-display-name "@DISPLAY_NAME@"
# Bot mode: a local WebSocket chat server with a bot user. Do NOT add
# --headless here — in SimpleX Chat v7 --headless means "chat relay" and
# requires --relay, which yields a relay address, not a user contact address.
ExecStart=@REPO@/.runtime/bin/simplex-chat -p @PORT@ -d @REPO@/.runtime/simplex/simplex_v1 -k "" --create-bot-display-name "@DISPLAY_NAME@"
Restart=always
RestartSec=10
StandardOutput=journal