From f92e3e7c49fef4d136ddd7d2e7f817cb0b255f4b Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 8 Sep 2020 21:31:56 +1000 Subject: Add the old bash scripts. Most of these will eventually be rewritten as C + Lua. --- example/config/config.ini | 47 +++++++++++++++++++++++++++++++++ example/config/sim_skeleton/ThisSim.ini | 44 ++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 example/config/config.ini create mode 100644 example/config/sim_skeleton/ThisSim.ini (limited to 'example/config') diff --git a/example/config/config.ini b/example/config/config.ini new file mode 100644 index 0000000..e95b04c --- /dev/null +++ b/example/config/config.ini @@ -0,0 +1,47 @@ +; The Const section allows us to define some basic information that we +; will use throughout our configuration. We will provide examples for +; setting the base url of the ROBUST server and the public and private ports +; it uses. Changing the values of the constants will set the operating +; parameters thoughout the configuration. Other constants that may prove +; to be useful may be added to the followin section. They may be +; referenced anywhere in the configuration by using ${Const|Name}. One +; such use is providing a base path for setting locations that ROBUST +; uses to write data. + +; Also put grid specific stuff here. + + +[Paths] + AssetsPath = "../../AssetFiles" + BackupPath = "../../backups" + CachePath = "../../caches" + ConfigPath = "../../config" + DbPath = "../../db" + LogPath = "../../logs" + WebPath = "../../web" + +[Const] + MOTD = "Welcome to your local grid." + + GridName = "localhost Grid" + ShortGridName = "lg" + + ; For a grid these will usually be the externally accessible IP/DNS + ; name and use default public port 8002 and default private port 8003 + ; For a standalone this will usually be the externally accessible IP/DNS + ; name and use default public port 9000. The private port is not used + ; in the configuration for a standalone. + BaseHostname = "127.0.0.1" + HostName = "localhost" + BaseURL = http://${Const|BaseHostname} + GridURL = http://${Const|BaseHostname} + + PublicPort = "8002" + PrivatePort = "8003" + + ; The public port of the ROBUST asset server, which might be different. + AssetServerPort = "8003" + + ; Database credentials. + DataProvider = "OpenSim.Data.MySQL.dll" + ConnectionString = "Data Source=MYSQL_HOST;Database=MYSQL_DB;User ID=MYSQL_USER;Password=MYSQL_PASSWORD;Old Guids=true;" diff --git a/example/config/sim_skeleton/ThisSim.ini b/example/config/sim_skeleton/ThisSim.ini new file mode 100644 index 0000000..44749bb --- /dev/null +++ b/example/config/sim_skeleton/ThisSim.ini @@ -0,0 +1,44 @@ +[Const] + mysim="SIM_NUMBER" + +[Startup] + PIDFile = "${Paths|CachePath}/sim${Const|mysim}.pid" + LogFile = "${Paths|LogPath}/OpenSim_sim${Const|mysim}.log" + StatsLogFile = "${Paths|LogPath}/OpenSimStats_sim${Const|mysim}.log" + ConsoleHistoryFile = "${Paths|LogPath}/OpenSimConsoleHistory_sim${Const|mysim}.txt" + +[Region] + RegionName = "SIM_NAME" + RegionUUID = "SIM_UUID" + Location = "SIM_POS" + InternalPort = "SIM_INT_PORT" + RegionType = "private sim" + SizeX = SIM_SIZE + SizeY = SIM_SIZE + SizeZ = 16384 + MaxAgents = 100 + MaxPrims = 45000 + PhysicalPrimMax = 640 + NonPhysicalPrimMax = 2560 + ClampPrimSize = False + MaptileStaticUUID = "00000000-0000-0000-0000-000000000000" + ; NonPhysicalPrimMin = 0 + ; PhysicalPrimMin = 0 + ; MaxPrimsPerUser = -1 + ; LinksetPrims = 0 + ; DefaultLanding = "<128, 128, 30>" + ; MaptileStaticFile = "" + ; ScopeID = "00000000-0000-0000-0000-000000000000" + ; Datastore = "" + ; ResolveAddress = "" + +[Network] + http_listener_port = SIM_PORT + +[Performance] + ;; Select the performance characteristics of OpenSim. + ; Include-Performance = "config-include/SimFast.ini" + Include-Performance = "config-include/SimBalanced.ini" + ; Include-Performance = "config-include/SimDefault.ini" + ; Include-Performance = "config-include/SimLean.ini" + -- cgit v1.1