This file is indexed.

/etc/xavante/xavante_start.lua is in xavante 2.3.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-- Some standard includes used by xavante
--
require "xavante"
require "xavante.filehandler"
require "xavante.redirecthandler"

-- xavante only recommends cgilua, thus this handler in not required by default
--
-- require "xavante.cgiluahandler"

-- To list the configuration files
--
require "lfs"
local conf_dir = "/etc/xavante/sites-enabled/"

-- This is the configuration table, virtual hsots should
-- fill it with rules (see the sample localhost.lua)
config = {
    server = {host = "*", port = 8080},
    defaultHost = {},
    virtualhosts = {},
}

-- load all configuration files 
for f in lfs.dir(conf_dir) do
	if string.match(f,"\.lua$") then
		local rc, err = pcall(dofile,conf_dir..f)
		if not rc then
			print('Error loading '..conf_dir..f..': '..tostring(err))
		end
	end
end

-- we also set the default host to localhost
config.defaultHost = config.virtualhosts["localhost:8080"]

-- load the configuration table
xavante.HTTP(config)

-- run xavante
xavante.start()