mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
configuration.md was missing most options added over the last few years. Add the controller, host and instance options that weren't listed, mark the internal ones, note the validation rule under each field that has one, and fix entries that had gone stale: the tls defaults, the proxy_stream_timeout name, game port assignment from host.factorio_port_range, the three sync list modes, and the player_online_autosave_slots heading. Plugin options live in the plugin READMEs, so add the missing ones for inventory_sync, player_auth and subspace_storage there. config-system.md gets the field definition properties it didn't list yet. Co-authored-by: bbassie <fqv4b97f@bastiaanbreemer.nl> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
39 lines
1.6 KiB
Markdown
39 lines
1.6 KiB
Markdown
# Clusterio Player Auth Plugin
|
|
|
|
Plugin authenticating logged in players to the web interface.
|
|
Authentication is achieved by a simple challenge response mechanism where players have to log into one of the Factorio server in the cluster and open a dialog that presents a code, this code is input into the login form on the web interface which gives back a second code.
|
|
Once the player enters the second code into the dialog in-game the web interface is authenticated.
|
|
|
|
|
|
## Installation
|
|
|
|
Run the following commands in the folder Clusterio is installed to:
|
|
|
|
npm install @clusterio/plugin-player_auth
|
|
npx clusteriocontroller plugin add @clusterio/plugin-player_auth
|
|
|
|
Substitute clusteriocontroller with clusteriohost or clusterioctl if this a dedicate host or ctl installation respectively.
|
|
|
|
|
|
## Controller Configuration
|
|
|
|
#### player_auth.code_length
|
|
|
|
Length in character of the generated challenge codes that need to be input between the web interface login form and the in-game Factorio login dialog.
|
|
|
|
Defaults to `6`.
|
|
|
|
#### player_auth.code_timeout
|
|
|
|
Time in seconds the first code generated stays valid.
|
|
The login must be completed in less than this time starting from when the login dialog is opened in-game.
|
|
|
|
Defaults to `120`.
|
|
|
|
#### player_auth.show_connect_address
|
|
|
|
Show the address to connect to for each server in the server list on the login page of the web interface, made up of host.public_address and the game port of the instance.
|
|
This list is visible to anyone who can reach the web interface, so leave it off if you don't want unauthenticated users to see where the servers are.
|
|
|
|
Defaults to `false`.
|