mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-11 14:34:40 +00:00
Account and Character Database and Config Improvements (#317)
* Create Account/DB abstraction * Fix crash when removing boomers from deconstructed player * Extend config to include database and worldserver info * Improve ConfigParser tests * Add database setup documentation * Add xTriad to THANKS file ** * Increase bcrypt rounds and fix readme link
This commit is contained in:
parent
ae768e1e42
commit
d08911d07c
29 changed files with 1757 additions and 225 deletions
|
|
@ -36,4 +36,7 @@
|
|||
<appender-ref ref="FILE-TRACE" />
|
||||
<appender-ref ref="FILE-DEBUG" />
|
||||
</root>
|
||||
|
||||
<!-- Logger specific overrides -->
|
||||
<logger name="com.github.mauricio.async" level="OFF"/>
|
||||
</configuration>
|
||||
|
|
|
|||
|
|
@ -18,6 +18,58 @@
|
|||
# - Line breaks should be at column 100.
|
||||
###################################################################################################
|
||||
|
||||
###################################################################################################
|
||||
# DATABASE SETTINGS
|
||||
###################################################################################################
|
||||
|
||||
[database]
|
||||
|
||||
# Hostname (string)
|
||||
# Description: The hostname of the PostgreSQL server.
|
||||
# Important: Make sure your database isn't accessible outside of localhost without a
|
||||
# strong username and password!
|
||||
# Default: "localhost"
|
||||
|
||||
Hostname = "localhost"
|
||||
|
||||
# Port (int)
|
||||
# Description: The TCP port to connect to the database with.
|
||||
# Range: [1, 65535] - (TCP port 1, TCP port 65535)
|
||||
# Default: 5432 - (Connect to TCP port 5432 -- the default for PostgreSQL)
|
||||
|
||||
Port = 5432
|
||||
|
||||
# SSL (enum)
|
||||
# Description: The SSL configuration of the database connection.
|
||||
# Values: Disable - (Do not use SSL -- not recommended for public servers)
|
||||
# Prefer - (Try SSL first, but fallback to unencrypted)
|
||||
# Require - (Use SSL and fail if it is not enabled or configured correctly
|
||||
# Verify - (Use SSL and verify that the certificate is authentic)
|
||||
# Default: Prefer
|
||||
|
||||
SSL = Prefer
|
||||
|
||||
# Database (string)
|
||||
# Description: The database name to use on the SQL server.
|
||||
# Important: Make sure your username has been granted SELECT and INSERT access to
|
||||
# the database.
|
||||
# Default: "psforever"
|
||||
|
||||
Database = "psforever"
|
||||
|
||||
# Username (string)
|
||||
# Description: The username to connect to the SQL server with.
|
||||
# Default: "psforever"
|
||||
|
||||
Username = "psforever"
|
||||
|
||||
# Password (string)
|
||||
# Description: The password to connect to the SQL server with.
|
||||
# Important: CHANGE THIS PASSWORD BEFORE RUNNING A PUBLIC SERVER.
|
||||
# Default: "psforever"
|
||||
|
||||
Password = "psforever"
|
||||
|
||||
###################################################################################################
|
||||
# WORLDSERVER SETTINGS
|
||||
###################################################################################################
|
||||
|
|
@ -33,6 +85,29 @@
|
|||
|
||||
ListeningPort = 51001
|
||||
|
||||
# Hostname (string)
|
||||
# Description: The server's public hostname or IP address. Required when the server is
|
||||
# behind a proxy or running in a container/virtual machine.
|
||||
# Important: If left as the default, the hostname will be the same as the primary
|
||||
# internet interface.
|
||||
# Default: ""
|
||||
|
||||
Hostname = ""
|
||||
|
||||
# ServerName (string)
|
||||
# Description: The name of the server as displayed in the server browser.
|
||||
# Range: Length = [1, 31]
|
||||
# Default: "PSForever"
|
||||
|
||||
ServerName = "PSForever"
|
||||
|
||||
# ServerType (enum)
|
||||
# Description: How the server is displayed in the server browser.
|
||||
# Values: Released, Beta, Development
|
||||
# Default: Released
|
||||
|
||||
ServerType = Released
|
||||
|
||||
###################################################################################################
|
||||
# LOGINSERVER SETTINGS
|
||||
###################################################################################################
|
||||
|
|
@ -48,6 +123,17 @@ ListeningPort = 51001
|
|||
|
||||
ListeningPort = 51000
|
||||
|
||||
# CreateMissingAccounts (boolean)
|
||||
# Description: Account usernames that don't exist yet will be automatically created in the
|
||||
# database. Useful for test servers and development testing.
|
||||
# Important: Not recommended for production servers as typos are easy to make on
|
||||
# first registration. Use PSFPortal (https://github.com/psforever/PSFPortal)
|
||||
# instead.
|
||||
# Default: yes - (Enabled)
|
||||
# no - (Disabled)
|
||||
|
||||
CreateMissingAccounts = yes
|
||||
|
||||
###################################################################################################
|
||||
# NETWORK SETTINGS
|
||||
###################################################################################################
|
||||
|
|
@ -94,6 +180,7 @@ Session.OutboundGraceTime = 1 minute
|
|||
# the memory load of the server and it will (by design) affect performance.
|
||||
# Default: no - (Disabled)
|
||||
# yes - (Enabled)
|
||||
|
||||
NetSim.Active = no
|
||||
|
||||
# NetSim.Loss (float)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue