-
Notifications
You must be signed in to change notification settings - Fork 0
Host Setup
java -jar ServerFabricHost.jarYou can also specify a custom config path:
java -jar ServerFabricHost.jar --config path/to/config.propertiesbindHost=127.0.0.1
bindPort=8085
hostId=local
token=CHANGE_ME_TOKEN
rootPath=dyn/
portMin=25570
portMax=25650
javaCmd=java
jvmArgs=-Xms512M,-Xmx1024M
securityTrustedCidrs=127.0.0.1/32,172.20.0.0/16,10.0.0.0/8
securityAuthMode=TOKEN_OR_SIGNED
securitySignedKeyId=proxy-main
securitySignedSecret=CHANGE_ME_TO_A_LONG_RANDOM_SECRET
securityClockSkewSeconds=30
securityNonceTtlSeconds=300ServerFabric-Host stores data under:
rootPath/templates/
rootPath/instances/
rootPath/build-cache/
rootPath/tools-cache/
rootPath/logs/
-
tokenmust match the proxy configuration when bearer mode is used -
javaCmdis used for runtime server launch - build-time Java is managed separately through the internal JDK cache
On first boot, ServerFabric-Host can create:
- config file
- root directories
- default example templates
Comma-separated list of trusted IPs/CIDRs.
Trusted CIDRs are still authenticated and logged, but they bypass temporary bans and rate limiting in the current implementation.
This is useful for:
- localhost
- Docker/Pterodactyl bridge networks
- proxy hosts
- private/VPN subnets
Authentication mode for the host API.
Supported values:
TOKEN_ONLYTOKEN_OR_SIGNEDSIGNED_ONLY
Recommended migration path:
TOKEN_ONLYTOKEN_OR_SIGNEDSIGNED_ONLY
The key ID used for signed requests.
The proxy must send the same key ID in X-SFabric-KeyId.
The shared secret used for HMAC signing.
Use a long random secret.
Allowed timestamp skew for signed requests.
If the proxy and host clocks differ too much, requests will be rejected.
How long a signed request nonce is remembered to prevent replay attacks.
Recommended deployment model:
- bind the host to localhost, LAN, or VPN/private IPs
- do not expose it directly to the public internet unless necessary
- restrict access with a firewall
- use trusted CIDRs for internal infrastructure
- migrate to signed requests for stronger authentication
See also: Host API Security