Run the dedicated JAR with Java
Start a local SoulFire server with Java 25, create an API token, and verify client access.
Ten poradnik jest dostępny tylko po angielsku.
The dedicated JAR starts a SoulFire server independently of a desktop client. It keeps bot sessions running after remote clients disconnect. Use Docker if you prefer a managed container.
Prepare Java and the JAR
Install Java 25 and check the executable:
java -versionDownload the dedicated JAR from Downloads. Place it in an empty deployment directory and open a terminal there. Use the exact downloaded filename in the command below. The SoulFire server uses this working directory for its persistent data.
Start a local listener
java -Xmx2G -XX:+EnableDynamicAgentLoading -Dsf.grpc.host=127.0.0.1 -jar SoulFireDedicated.jarSoulFireDedicated.jar represents the downloaded filename. Released assets can include a version suffix.
The 2 GB heap illustrates a small trial, not a bot-capacity guarantee.
The first start can take longer while the launcher prepares its dependencies and data.
Wait for the SoulFire server to finish loading before connecting a client.
The SoulFire server can print recommended JVM tuning flags.
Those flags tune performance. The sf.flags.v2 property acknowledges that warning; it does not apply the flags itself.
Use measured SoulFire server performance to choose a heap and tuning settings.
Generate an API token
In the server's interactive console, run:
generate-token apiOpen the desktop app and select Connect to a SoulFire server.
Use http://127.0.0.1:38765 and the generated token for a client on the same computer.
Expect the project pages to load.
Then connect one bot to check the complete workflow.
Configure the listener
| Property | Default for dedicated mode | Purpose |
|---|---|---|
sf.grpc.host | 0.0.0.0 | Address to bind |
sf.grpc.port | 38765 | API port |
Without -Dsf.grpc.host, the API listens on all network interfaces over plain HTTP.
Anyone who can reach the port can try to log in, and tokens cross the network unencrypted.
Pass system properties before -jar.
This example listens only on loopback and moves the API to port 38766, for example because another SoulFire server uses 38765:
java -Xmx2G -XX:+EnableDynamicAgentLoading -Dsf.grpc.host=127.0.0.1 -Dsf.grpc.port=38766 -jar SoulFireDedicated.jarFor remote clients, keep the listener on loopback and put a reverse proxy or tunnel with HTTPS in front of it.
See Manage access and HTTPS.
A remote client's 127.0.0.1 refers to that client, not this SoulFire server.
Other listener properties
| Property | Default | Purpose |
|---|---|---|
sf.grpc.tls.enabled | false | Serve HTTPS directly from the SoulFire server |
sf.grpc.tls.cert | (none) | PEM certificate chain file for HTTPS |
sf.grpc.tls.key | (none) | PEM private key file for HTTPS |
sf.grpc.tls.key.password | (none) | Password for an encrypted private key |
sf.grpc.proxy-protocol | false | Accept the PROXY protocol header from a load balancer |
sf.prometheus.enabled | false | Start a Prometheus endpoint at /metrics |
sf.prometheus.port | 9090 | Port of the Prometheus endpoint |
With built-in HTTPS, the API port still accepts plain HTTP, so keep the port firewalled from untrusted networks.
The Prometheus endpoint binds to the same address as sf.grpc.host and has no authentication.
Store properties in a file
Instead of -D flags, you can put sf.* properties in soulfire.properties in the working directory, one key=value per line.
The SoulFire server reads the file at startup and ignores lines that start with #.
A value in the file replaces the same property passed with -D.
Keys that do not start with sf. are rejected, so set database and mysql.* properties with -D flags.
sf.grpc.host=127.0.0.1
sf.grpc.port=38765Console and shutdown
-Dterminal.jline=true or false controls the interactive terminal.
-Dterminal.ansi=true or false controls terminal colors.
Pause scripts and stop bots before maintenance.
Run stop in the SoulFire server console for a clean shutdown.
Restart from the same directory to preserve its saved data.
Use backup and restore before replacing the JAR or moving that directory.
If the SoulFire server does not start or clients cannot connect, see Dedicated server and Docker troubleshooting.
Ostatnia aktualizacja:
Czy ta strona jest pomocna?
