prosody.cfg.lua.dist
changeset 1527 47729fa90a6c
parent 1526 5f11a8d07161
child 1548 b88b30c9e688
equal deleted inserted replaced
1526:5f11a8d07161 1527:47729fa90a6c
     6 -- The config is split into sections, a global section, and one 
     6 -- The config is split into sections, a global section, and one 
     7 -- for each defined host that we serve. You can add as many host 
     7 -- for each defined host that we serve. You can add as many host 
     8 -- sections as you like.
     8 -- sections as you like.
     9 --
     9 --
    10 -- Lists are written { "like", "this", "one" } 
    10 -- Lists are written { "like", "this", "one" } 
    11 -- Lists can also be of { 1, 2, 3 } numbers, etc. 
    11 -- Lists can also be of { 1, 2, 3 } numbers, and other things. 
    12 -- Either commas, or semi-colons; may be used
    12 -- Either commas, or semi-colons; may be used
    13 -- as seperators.
    13 -- as seperators.
    14 --
    14 --
    15 -- A table is a list of values, except each value has a name. An 
    15 -- A table is a list of values, except each value has a name. An 
    16 -- example would be:
    16 -- example table would be:
    17 --
    17 --
    18 -- ssl = { key = "keyfile.key", certificate = "certificate.cert" }
    18 -- ssl = { key = "keyfile.key", certificate = "certificate.cert" }
    19 --
    19 --
    20 -- Whitespace (that is tabs, spaces, line breaks) is mostly insignificant, so 
    20 -- Whitespace (that is tabs, spaces, line breaks) is mostly insignificant, so 
    21 -- can 
    21 -- can 
    22 -- be placed anywhere
    22 -- be placed anywhere that 	you deem fitting.
    23 -- that 	you deem fitting.
       
    24 --
    23 --
    25 -- Tip: You can check that the syntax of this file is correct when you have finished
    24 -- Tip: You can check that the syntax of this file is correct when you have finished
    26 -- by running: luac -p prosody.cfg.lua
    25 -- by running: luac -p prosody.cfg.lua
    27 -- If there are any errors, it will let you know what and where they are, otherwise it 
    26 -- If there are any errors, it will let you know what and where they are, otherwise it 
    28 -- will keep quiet.
    27 -- will keep quiet.
    29 --
    28 --
    30 -- The only thing left to do is rename this file to remove the .dist ending, and fill in the 
    29 -- The only thing left to do is rename this file to remove the .dist ending, and fill in the 
    31 -- blanks. Good luck, and happy Jabbering!
    30 -- blanks. Good luck, and happy Jabbering!
    32 
    31 
    33 -- Global settings go in this section
    32 -- Server-wide settings go in this section
    34 Host "*"
    33 Host "*"
    35 	
    34 	
    36 	-- This is the list of modules Prosody will load on startup.
    35 	-- This is the list of modules Prosody will load on startup.
    37 	-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
    36 	-- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
    38 	modules_enabled = {
    37 	modules_enabled = {