Setting up the Floating Server V2
Compatibility
Download the Floating Server
Steps to get the Floating Server to Run
1
Prepare configuration file
database:
# if using sqlite
type: sqlite
path: ./data/db.sqlite
# if using postgres
type: postgres
host: localhost
port: 5432
user: fsuser
password: fspassword
name: fsdb
CryptoProviderKey: "" # secret used to encrypt db data in OAuth mode
server:
port: 8080 # port on which the server runs
Verbose: true # level of information given in logs
DisableUserAuth: false # disable user authentication requirement, not admin!
cloud:
UseOAuth: false
# if authenticating with API/Shared key
APIKey: ""
SharedKey: ""
# if authenticating with OAuth
ClientId: ""
ClientSecret: ""
# cloud server config
BaseURL: "" # default: "https://api.licensespring.com"
APIPrefix: "" # default: "/api/v4/"
ServerPublicKey: "" # default: LicenseSpring Prod's public key
# if having Airgap licenses, fetch this key from platform
AirgapPublicKey: ""
# provisioning config
UseHardwareKey: false # choose provisioning method
PrivateKeyPath: "" # path to generated priv key. Ignore if using hardware key
CertificatePath: "" # path to cert received from LS. Ignore if using hardware key
CACertificatePath: "" # path to CA certificate, in both provision methodsDatabase Configuration
CREATE DATABASE fsdb;
CREATE USER fsuser WITH PASSWORD 'fspassword';
GRANT ALL PRIVILEGES ON DATABASE fsdb TO fsuser;
Server Configuration
Cloud Configuration
ServerPublicKey: |
-----BEGIN PUBLIC KEY-----
(your public key here)
-----END PUBLIC KEY-----2
Provision the server
Generate a Key Pair
openssl genrsa -out private.key 2048Provision via LS Platform


Download and Save Certificates
Update Configuration
cloud:
UseHardwareKey: false # choose provisioning method
PrivateKeyPath: "" # ignore if using hardware key
CertificatePath: "" # ignore if using hardware key
CACertificatePath: "" # path to CA certificate, in both provision methodsFirst-time Admin Setup


Was this helpful?