Files
StargateControl/config.lua

80 lines
2.3 KiB
Lua

--[[
Configuration File
All user-configurable settings for the Stargate Control System
]]
local config = {}
---------------------------------------------
-- GATE BEHAVIOR
---------------------------------------------
-- Gate dialing speed (seconds between chevrons for non-Milky Way gates)
config.gatespeed = 0.5
-- Manual dial for Milky Way gates (rotating ring animation)
config.manualDial = false
-- Access control
config.canAccessHazardGates = true
---------------------------------------------
-- IRIS CONFIGURATION
---------------------------------------------
config.irisEnabled = true
config.autoCloseIrisOnIncoming = true
config.irisCloseDelay = 0.1 -- seconds before closing iris on incoming
-- Default iris state when gate is idle (no connection)
-- true = iris closed when idle, false = iris open when idle
config.irisClosedByDefault = false
-- Iris password (set to nil to disable remote password unlock)
config.irisPassword = "1234"
---------------------------------------------
-- MESSAGING
---------------------------------------------
-- Program version (sent to remote gates when connection established)
config.programVersion = "1.0"
-- Enable computer-to-computer messaging through stargate
config.enableMessaging = true
---------------------------------------------
-- SECURITY
---------------------------------------------
-- Whitelist (if not empty, only these addresses can enter)
-- Format: {"Name", {address_table}}
config.whitelist = {
{ "Glaive", { 33, 6, 10, 24, 1, 30, 3, 17, 0 } },
{ "Moon", { 32, 33, 8, 7, 25, 21, 14, 35, 0 } },
{ "Caldoric", { 18, 2, 24, 16, 8, 19, 4, 29, 0 } },
{ "Trading Hall", { 16, 19, 6, 18, 35, 27, 9, 8, 0 } }
}
-- Blacklist (these addresses are always blocked)
config.blacklist = {
-- {"DangerGate", {1,2,3,4,5,6,0}},
}
---------------------------------------------
-- LOGGING
---------------------------------------------
config.enableLogging = true
config.logFile = "stargate.log"
---------------------------------------------
-- AUTO-UPDATE
---------------------------------------------
-- Auto-update addresses file from git repository
config.autoUpdateAddresses = true
config.addressesRepoUrl = "https://git.munebase.dev/Munelit/StargateControl/raw/branch/master/addresses.lua"
return config