[Unit] Description=DevFlow IM Gateway (飞书/企微/钉钉/Web 四端远程接入) After=network-online.target Wants=network-online.target [Service] Type=simple WorkingDirectory=/opt/df-im-gateway ExecStart=/opt/df-im-gateway/df-im-gateway Restart=on-failure RestartSec=3 # ── 运行时 env(与本地 config.rs 对齐;token 与 u-relay 同源)── Environment=GATEWAY_RELAY_URL=ws://127.0.0.1:9180/ws/commander Environment=GATEWAY_RELAY_TOKEN=devflow-relay-default-token Environment=GATEWAY_DEFAULT_CHANNEL=chan-work Environment=GATEWAY_DATA_DIR=/opt/df-im-gateway/data Environment=RUST_LOG=info,df_im_gateway=debug StandardOutput=append:/opt/df-im-gateway/gateway.log StandardError=append:/opt/df-im-gateway/gateway.err.log [Install] WantedBy=multi-user.target