56 lines
1.1 KiB
Lua
56 lines
1.1 KiB
Lua
-- Configuration!
|
|
-- Change this stuff
|
|
|
|
|
|
-- Bits of config
|
|
local config = {
|
|
aws_region="us-west-2",
|
|
domain = "txwea.boo",
|
|
subdomain_fmt = "%s.txwea.boo",
|
|
version="0.0.1",
|
|
}
|
|
|
|
-- These scripts spin up
|
|
-- each vps gets a name, and each vps gets some services. Each services may
|
|
-- depend on other services in a directed acyclic graph.
|
|
|
|
config.services = {
|
|
mc = {-- The minecraft server
|
|
ports = {25565},
|
|
public = true,
|
|
},
|
|
laminar = { -- A laminar ci/cd server
|
|
ports = {8080},
|
|
},
|
|
web = {-- Web server hosts the mmc instance, the map, ect.
|
|
ports = {80, 443},
|
|
public = true,
|
|
},
|
|
ssh = { -- The ssh server into the vpc, so you can bounce to other boxes that may not open ssh directly
|
|
ports = {22},
|
|
public = true,
|
|
},
|
|
}
|
|
-- Configure services -> machines
|
|
config.machines = {
|
|
main = {
|
|
services = {"mc","laminar","web","ssh"},
|
|
size = "t3.nano"
|
|
},
|
|
}
|
|
config.mods = {
|
|
shared = {},
|
|
server = {},
|
|
client = {},
|
|
}
|
|
|
|
-- Validation! Don't change stuff below this line!
|
|
|
|
for _,mod in pairs(config.mods.shared) do
|
|
table.insert(config.mods.client,mod)
|
|
table.insert(config.mods.server,mod)
|
|
end
|
|
|
|
|
|
return config
|