prosody.cfg.lua.dist
author Waqas Hussain <waqas20@gmail.com>
Tue, 23 Mar 2010 20:55:28 +0500
changeset 2931 de4daf300f19
parent 2930 832ab8cf7c57
child 2984 3094166cfdd5
permissions -rw-r--r--
prosody.cfg.lua.dist: Whitespace fix.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2407
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
     1
-- Prosody Example Configuration File
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
     2
--
2407
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
     3
-- If it wasn't already obvious, -- starts a comment, and all
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
     4
-- text after it on a line is ignored by Prosody.
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
     5
--
2407
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
     6
-- The config is split into sections, a global section, and one
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
     7
-- for each defined host that we serve. You can add as many host
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
     8
-- sections as you like.
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
     9
--
2407
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
    10
-- Lists are written { "like", "this", "one" }
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
    11
-- Lists can also be of { 1, 2, 3 } numbers, and other things.
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    12
-- Either commas, or semi-colons; may be used
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    13
-- as seperators.
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    14
--
2407
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
    15
-- A table is a list of values, except each value has a name. An
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    16
-- example table would be:
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    17
--
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    18
-- ssl = { key = "keyfile.key", certificate = "certificate.cert" }
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    19
--
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    20
-- Whitespace (that is tabs, spaces, line breaks) is mostly
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    21
-- insignificant, so
2407
00121b728a02 prosody.cfg.lua.dist: Remove trailing whitespace
Matthew Wild <mwild1@gmail.com>
parents: 2024
diff changeset
    22
-- can
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    23
-- be placed anywhere that      you deem fitting.
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    24
--
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    25
-- Tip: You can check that the syntax of this file is correct when you
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    26
-- have finished by running: luac -p prosody.cfg.lua
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    27
-- If there are any errors, it will let you know what and where they
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    28
-- are, otherwise it will keep quiet.
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    29
--
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    30
-- The only thing left to do is rename this file to remove the .dist
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    31
-- ending, and fill in the
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    32
-- blanks. Good luck, and happy Jabbering!
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    33
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    34
-- Server-wide settings go in this section
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    35
Host "*"
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    36
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    37
	-- This is a (by default, empty) list of accounts that are admins for the
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    38
	-- server. Note that you must create the accounts separately (see
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    39
	-- http://prosody.im/doc/creating_accounts)
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    40
	-- Example: admins = { "user1@example.com", "user2@example.net" }
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    41
	admins = { }
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    42
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    43
	-- Enable use of libevent for better performance under high load
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    44
	-- For more information see: http://prosody.im/doc/libevent
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    45
	--use_libevent = true;
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    46
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    47
	-- This is the list of modules Prosody will load on startup. It looks for
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    48
	-- mod_modulename.lua in the plugins folder, so make sure that exists too.
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    49
	-- Documentation on modules can be found at: http://prosody.im/doc/modules
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    50
	modules_enabled = {
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    51
		-- Generally required
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    52
		"roster";   -- Allow users to have a roster. Recommended ;)
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    53
		"saslauth"; -- Authentication for clients and servers. Recommended if
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    54
		            -- you want to log in.
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    55
		"dialback"; -- s2s dialback support
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    56
		"disco";    -- Service discovery
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    57
		"posix";    -- POSIX functionality, daemonizes, enables syslog, etc.
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    58
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    59
		-- Not essential, but recommended
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    60
		"private";       -- Private XML storage (for room bookmarks, etc.)
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    61
		"vcard";         -- Allow users to set vCards
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    62
		"tls";           -- Support for secure TLS on c2s/s2s connections
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    63
		--"privacy";     -- Support privacy lists
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    64
		--"compression"; -- Stream compression for client-to-server streams
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    65
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    66
		-- Nice to have
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    67
		"legacyauth"; -- Legacy authentication. Only used by some old
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    68
		              -- clients and bots.
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    69
		"version";    -- Replies to server version requests
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    70
		"uptime";     -- Report how long server has been running
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    71
		"time";       -- Let others know the time here on this server
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    72
		"ping";       -- Replies to XMPP pings with pongs
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    73
		"pep";        -- Enables users to publish their mood, activity, playing
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    74
		              -- music and more
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    75
		"register";   -- Allow users to register on this server using a client
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    76
		              -- and change passwords
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    77
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    78
		-- Other specific functionality
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    79
		--"console";            -- telnet to port 5582
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    80
		                        -- (needs console_enabled = true)
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    81
		--"bosh";               -- Enable BOSH clients, aka "Jabber over HTTP"
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    82
		--"httpserver";         -- Serve static files from a directory over
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    83
		                        -- HTTP
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    84
		--"groups";             -- Shared roster support
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    85
		--"announce";           -- Send announcement to all online users
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    86
		--"welcome";            -- Welcome users who register accounts
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    87
		--"watchregistrations"; -- Alert admins of registrations
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    88
	}
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
    89
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    90
	-- These modules are auto-loaded, should you for (for some mad
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    91
	-- reason) want to disable them then uncomment them below.
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    92
	modules_disabled = {
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    93
		--"presence";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    94
		--"message";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    95
		--"iq";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    96
	}
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
    97
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    98
	-- Disable account creation by default, for security
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
    99
	-- For more information see http://prosody.im/doc/creating_accounts
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   100
	allow_registration = false;
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
   101
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   102
	--These are the SSL/TLS-related settings.
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   103
	--ssl = {
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   104
	--    key = "certs/localhost.key";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   105
	--    certificate = "certs/localhost.cert";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   106
	--}
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
   107
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   108
	-- Require encryption on client/server connections?
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   109
	--c2s_require_encryption = false
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   110
	--s2s_require_encryption = false
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
   111
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   112
	-- Logging configuration
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   113
	-- For advanced logging see http://prosody.im/doc/logging
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   114
	log = "prosody.log";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   115
	debug = false; -- Log debug messages?
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   116
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   117
-- This allows clients to connect to localhost. No harm in it.
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   118
Host "localhost"
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   119
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   120
-- Section for example.com
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   121
-- (replace example.com with your domain name)
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   122
Host "example.com"
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   123
	enabled = false -- This will disable the host, preserving the config, but
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   124
	                -- denying connections (remove to enable!)
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   125
2931
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   126
	-- Assign this host a certificate for TLS, otherwise it would use the one
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   127
	-- set in the global section (if any). Note that old-style SSL on port 5223
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   128
	-- only supports one certificate, and will always use the global one.
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   129
	--ssl = {
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   130
	--    key = "certs/example.com.key";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   131
	--    certificate = "certs/example.com.crt";
de4daf300f19 prosody.cfg.lua.dist: Whitespace fix.
Waqas Hussain <waqas20@gmail.com>
parents: 2930
diff changeset
   132
	--}
2024
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   133
46a9c7c99476 prosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild <mwild1@gmail.com>
parents: 1810
diff changeset
   134
-- Set up a MUC (multi-user chat) room server on conference.example.com:
2694
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
   135
--Component "conference.example.com" "muc"
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
   136
a6d80b6e9ee1 prosody.cfg.lua.dist: Update config for 0.7, most improvements from the Arch Linux package by dbb, thanks!
Matthew Wild <mwild1@gmail.com>
parents: 2408
diff changeset
   137
-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
2716
4e4a24a1288d prosody.cfg.lua.dist: Fix missing quote in commented proxy config example
Matthew Wild <mwild1@gmail.com>
parents: 2694
diff changeset
   138
--Component "proxy.example.com" "proxy65"