{"id":30211267,"url":"https://github.com/mons/tnt-config","last_synced_at":"2026-01-20T17:59:58.424Z","repository":{"id":35809442,"uuid":"40091835","full_name":"Mons/tnt-config","owner":"Mons","description":"Package for loading external lua config","archived":false,"fork":false,"pushed_at":"2019-07-30T14:39:24.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-10T20:33:15.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-02T20:27:11.000Z","updated_at":"2016-12-01T11:33:30.000Z","dependencies_parsed_at":"2022-09-03T22:11:23.351Z","dependency_job_id":null,"html_url":"https://github.com/Mons/tnt-config","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/Mons/tnt-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2Ftnt-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2Ftnt-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2Ftnt-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2Ftnt-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mons","download_url":"https://codeload.github.com/Mons/tnt-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mons%2Ftnt-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305853,"owners_count":24562110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-13T20:34:24.473Z","updated_at":"2026-01-20T17:59:58.404Z","avatar_url":"https://github.com/Mons.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"Having conf.lua\n\n```lua\nbox = {\n\twork_dir           = '.';\n\tpid_file           = 'box.pid';\n\tcustom_proc_title  = 'm1';\n\tbackground         = false;\n\tslab_alloc_arena   = 0.1;\n\t--- Networking. Dynamic ---\n\t\tlisten = '127.0.0.1:3013',\n\t\treadahead           = 65536,\n}\nconsole = {\n\tlisten = '127.0.0.1:3016'\n}\ninclude 'app.lua'\n```\n\nand app.lua:\n\n```lua\napp = {\n\tpool = {\n\t\t{ uri = '127.0.0.1:3013', zone = '1' };\n\t\t{ uri = '127.0.0.2:3013', zone = '2' };\n\t\t{ uri = '127.0.0.3:3013', zone = '3' };\n\t}\n}\n\n```\n\nin init.lua\n\n```lua\nlocal conf = require 'config' ('conf.lua') -- call to conf loads config\n\nlocal pool = conf.get('app.pool',{})\n```\n\nor anywhere in application module\n\n```lua\nlocal conf = require 'config'\n\nlocal pool = conf.get('app.pool',{})\n```\n\nthen we could run\n\n```sh\ntarantool init.lua\n# runs tarantool with conf.lua\n```\n\nor\n\n```sh\ntarantool -c cf1.lua init.lua\n# runs tarantool with cf1.lua\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmons%2Ftnt-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmons%2Ftnt-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmons%2Ftnt-config/lists"}