Advertisement
riyadi

prosody openWRT

Feb 26th, 2014
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. + TURNING ON MR3020 INTO CHEAP MOBILE VoIP SERVER +
  3. + ASRIADI, riyadi08@gmail.com +
  4. + SURABAYA +
  5. + +
  6. + Special Thanks : Allah SWT, Kedua Orang Tuaku (ma perkenalkan ini duniaku :D ) +
  7. + +
  8. + Teman-teman Ubuntu Makassar (lucid lynx, Musa Amin, dan semuanya ) +
  9. + Teman-teman openWRT indonesia (sis cindy wijaya, om victor, tisaros kaskus dan semuanya) +
  10. + Teman-teman di generator08 Jurusan Pendidikan Teknik Elektro UNM +
  11. + Keluarga keduaku di UKM Search And Rescue UNM (ini untuk kalian :D) +
  12. + +
  13. + untuk muldiana yang selalu membuatku ingin menjadi yang terbaik agar bisa kau banggakan :D +
  14. + dan anda yang telah membaca tutorial yang usang ini +
  15. + +
  16. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  17. + File Pendukung +
  18.  
  19. ----------------------------------------- Cut Here ----------------------------------------------
  20.  
  21. -- Prosody Example Configuration File
  22. --
  23. -- Information on configuring Prosody can be found on our
  24. -- website at http://prosody.im/doc/configure
  25. --
  26. -- Tip: You can check that the syntax of this file is correct
  27. -- when you have finished by running: luac -p prosody.cfg.lua
  28. -- If there are any errors, it will let you know what and where
  29. -- they are, otherwise it will keep quiet.
  30. --
  31. -- The only thing left to do is rename this file to remove the .dist ending, and fill in the
  32. -- blanks. Good luck, and happy Jabbering!
  33.  
  34.  
  35. ---------- Server-wide settings ----------
  36. -- Settings in this section apply to the whole server and are the default settings
  37. -- for any virtual hosts
  38.  
  39. -- This is a (by default, empty) list of accounts that are admins
  40. -- for the server. Note that you must create the accounts separately
  41. -- (see http://prosody.im/doc/creating_accounts for info)
  42. -- Example: admins = { "user1@example.com", "user2@example.net" }
  43. admins = { }
  44.  
  45. -- This is the list of modules Prosody will load on startup.
  46. -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too.
  47. modules_enabled = {
  48.  
  49. -- Generally required
  50. "roster"; -- Allow users to have a roster. Recommended <img src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" alt=";)" class="wp-smiley">
  51. "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
  52. "tls"; -- Add support for secure TLS on c2s/s2s connections
  53. "dialback"; -- s2s dialback support
  54. "disco"; -- Service discovery
  55.  
  56. -- Not essential, but recommended
  57. "private"; -- Private XML storage (for room bookmarks, etc.)
  58. "vcard"; -- Allow users to set vCards
  59.  
  60. -- Nice to have
  61. "legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
  62. "version"; -- Replies to server version requests
  63. "uptime"; -- Report how long server has been running
  64. "time"; -- Let others know the time here on this server
  65. "ping"; -- Replies to XMPP pings with pongs
  66. "pep"; -- Enables users to publish their mood, activity, playing music and more
  67. "register"; -- Allow users to register on this server using a client and change passwords
  68.  
  69. -- Other specific functionality
  70. "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
  71. --"console"; -- Opens admin telnet interface on localhost port 5582
  72. --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
  73. --"httpserver"; -- Serve static files from a directory over HTTP
  74. };
  75.  
  76. -- These modules are auto-loaded, should you
  77. -- for (for some mad reason) want to disable
  78. -- them then uncomment them below
  79. modules_disabled = {
  80. -- "presence";
  81. -- "message";
  82. -- "iq";
  83. };
  84.  
  85. -- Disable account creation by default, for security
  86. -- For more information see http://prosody.im/doc/creating_accounts
  87. allow_registration = true;
  88.  
  89. -- File to write pid in
  90. pidfile = "/var/run/prosody/prosody.pid";
  91.  
  92. -- These are the SSL/TLS-related settings. If you don't want
  93. -- to use SSL/TLS, you may comment or remove this
  94. ssl = {
  95. key = "/etc/prosody/certs/localhost.key";
  96. certificate = "/etc/prosody/certs/localhost.cert";
  97. }
  98.  
  99. -- Errors to syslog
  100. -- All to /var/log/prosody/
  101. log = {
  102. { levels = { "error" }; to = "syslog"; };
  103. { levels = { "error" }; to = "file"; filename = "/var/log/prosody/prosody.err"; };
  104. -- Change "info" to "debug" for more verbose logging
  105. { levels = { min = "info" }; to = "file"; filename = "/var/log/prosody/prosody.log"; };
  106. }
  107.  
  108. ----------- Virtual hosts -----------
  109. -- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
  110. -- Settings under each VirtualHost entry apply *only* to that host.
  111.  
  112. VirtualHost "localhost"
  113.  
  114. VirtualHost "teknikelektro"
  115. enable = true
  116. -- ssl = { -- optional
  117. -- key = "/etc/prosody/certs/example.com.key";
  118. -- certificate = "/etc/prosody/certs/example.com.crt";
  119. -- }
  120.  
  121.  
  122. VirtualHost "example.com"
  123. enabled = false -- Remove this line to enable this host
  124.  
  125. -- Assign this host a certificate for TLS, otherwise it would use the one
  126. -- set in the global section (if any).
  127. -- Note that old-style SSL on port 5223 only supports one certificate, and will always
  128. -- use the global one.
  129. ssl = {
  130. key = "/etc/prosody/certs/example.com.key";
  131. certificate = "/etc/prosody/certs/example.com.crt";
  132. }
  133.  
  134. ------ Components ------
  135. -- You can specify components to add hosts that provide special services,
  136. -- like multi-user conferences, and transports.
  137. -- For more information on components, see http://prosody.im/doc/components
  138.  
  139. ---Set up a MUC (multi-user chat) room server on conference.example.com:
  140. --Component "conference.example.com" "muc"
  141.  
  142. ---Set up an external component (default component port is 5347)
  143. --Component "gateway.example.com"
  144. -- component_secret = "password"
  145.  
  146. ----------------------------------------- Cut Here ----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement