Merci à Pafzedog et Liandri pour la correction du tutoriel.
Installation
Ce tutoriel se base sur un ancien article de Cyrille Borne (qui n'est plus disponible), je vais donc détailler la marche à suivre tout en l’actualisant.
Sous Debian Stretch, il nous faut ajouter le dépot de Prosody, la clef et ensuite installer Prosody :
echo "deb http://packages.prosody.im/debian stable main" | sudo tee -a /etc/apt/sources.list
wget http://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
sudo aptitude update
sudo aptitude install prosody
Pour ma part il manquait des dépendances pour SSL, il faudra donc peut être vérifier si vous avez toutes les libs lua
.
Pour Red Hat/CentOS/Fedora :
dnf install prosody
Configuration
Ensuite on va configurer le serveur via le fichier prosody.cfg.lua
:
vim /etc/prosody/prosody.cfg.lua
Et aller à la ligne 186 pour trouver les VirtualHosts et ajouter ces lignes :
VirtualHost "domaine.tld"
ssl = {
key = "/etc/prosody/certs/domaine.tld.key";
certificate = "/etc/prosody/certs/domaine.tld.crt";
}
Il va nous falloir générer le certificats SSL, je vous recommande de les générer avec Letsencrypt/Certbot si vous n'en avez pas encore pour le domaine sur lequel vous allez l'utiliser.
Il va falloir importer le certificat dans le dossier de Prosody car celui-ci doit avoir l'accès complet à ce dernier.
prosodyctl --root cert import /etc/letsencrypt/live
Cela va nous générer les domaine.tld.key
et domaine.tld.crt
que l'ont a ajouté précédemment dans le fichier de configuration.
Puis on redémarre Prosody /etc/init.d/prosody restart
ou avec systemctl restart prosody
.
Il faudra ouvrir les ports pour le serveur dans iptables :
iptables -A INPUT -p tcp --dport 5222 -j ACCEPT
iptables -A INPUT -p tcp --dport 5269 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 5269 -j ACCEPT
On vérifie bien que les ports sont ouverts
iptables -L | grep xmpp
Ce qui devrait retourner ceci :
ACCEPT tcp -- anywhere anywhere tcp dpt:xmpp-client
ACCEPT tcp -- anywhere anywhere tcp dpt:xmpp-server
ACCEPT tcp -- anywhere anywhere tcp dpt:xmpp-server
Création d'un compte utilisateur Jabber dans Prosody
On va maintenant créer notre utilisateur avec prosodyctl
.
prosodyctl adduser user_name@domaine.tld
Et voilà il ne vous reste plus qu'a vous connecter avec votre client XMPP préféré.
Aller plus loin
Vous pouvez aller plus loin avec le fichier de configuration, comme par exemple configurer les salons de discussion, juste après les vhosts, ligne 200 dans les Components (voir la documentation de Prosody)
Ajouter des admins au serveur ligne 22
-- Example: admins = { "user1@example.com", "user2@example.net" }
admins = { }
Ou encore ouvrir ou fermer votre serveur aux inscriptions :
-- Disable account creation by default, for security
-- For more information see https://prosody.im/doc/creating_accounts
allow_registration = false or true
Comments
October 30, 2022 11:59
jacvk22
An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers. muscle cars for sale
January 10, 2023 10:42
jacvk22
Speedily this specific web page could indisputably become popular involving most writing a blog along with site-building persons, for you to their fastidious blogposts or possibly testimonials. 먹튀없는 안전공원
January 11, 2023 10:07
jacvk22
I’m a new pertaining to almost all of the articles or blog posts, My spouse and i definitely savored, I’d personally genuinely like additional files with regards to this specific, since it can be okay., Congratulations for the purpose of putting up. 최고의스포츠토토
January 14, 2023 11:19
jacvk22
Hey! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly? My site looks weird when browsing from my apple iphone. I’m trying to find a template or plugin that might be able to correct this issue. If you have any suggestions, please share. With thanks! Full Spectrum
November 1, 2022 03:41
fomajob
The main reason why it’s always a lot better that one can significant researching preceding doing. You’ll be able to share improved page using this method. seo公司
October 26, 2022 13:51
I like your undertake the issue. I now have a clear idea on what this matter is all about.. laundry chute doors
January 26, 2023 13:50
fgvdrgv
Hello! I just would like to give a enormous thumbs up for the excellent information you’ve here on this post. I will likely be coming back to your weblog for much more soon. Black Attorney
January 17, 2023 11:48
fgvdrgv
Buy Gold, Platinum, Palladium and Silver Invest in precious metals and get best prices for your 18,22, 24 Carat Gold bars and coins.
January 18, 2023 09:51
BVN B
very good publish, i definitely love this website, carry on it 무료스포츠중계
November 20, 2022 14:16
AA
eye doctors are specially helpful whenever you have some eye problems** incorporate services
November 21, 2022 12:11
AA
baccarat onlinewith our online casino site Because the Lucaclub88 website is reliable, highly secure, and staff are available 24 hours a day, ready to answer questions in a timely manner, not wasting time on investment, as well as depositing-withdrawing into the system quickly. บาคาร่า
November 13, 2022 09:23
i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. управление и поддръжка на жилищни сгради
November 14, 2022 08:58
ASSAS
I totally understand everything you have stated. Actually, I browsed through your various other articles and I do think that you’re certainly correct. Best wishes with this particular site. 寄澳洲運費
November 24, 2022 11:52
AA
An impressive share, I just now given this onto a colleague who has been conducting a small analysis with this. And that he the truth is bought me breakfast because I ran across it for him.. smile. So i want to reword that: Thnx for that treat! But yeah Thnkx for spending some time to talk about this, Personally i think strongly about this and enjoy reading on this topic. If at all possible, as you become expertise, can you mind updating your blog post with more details? It really is extremely great for me. Huge thumb up in this text! acim
November 22, 2022 10:57
AA
there are dining sets come in wide variety and prices, i often get the lower priced ones,. incorporate company Singapore
December 18, 2022 11:52
AS
Stay organized with proper bookkeeping services! What are you waiting for? Take a look at our standard packages or contact us for a custom quote. Our Packages … Taxes
December 12, 2022 10:57
S
wonderful points altogether, you just received brand new reader. What would you suggest about your post that you made a few days ago? Any sure? https://rajagacor21.is-blog.com/20206014/rajagacor-trusted-rajagacor-online-gambling-list-recommendations-2022
November 29, 2022 10:13
AA
The next time I read a blog, I am hoping that it doesnt disappoint me about that one. I mean, It was my method to read, but I personally thought youd have some thing intriguing to convey. All I hear can be a bunch of whining about something that you could fix in the event you werent too busy looking for attention. overwatch boosting
December 21, 2022 11:04
SHAHBAZANSARI
when giving corporate gifts, you should also be creative to find the best gifts to give. demo slot
December 1, 2022 12:07
DFGHJKJLL
Outstanding article! I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. slot
December 14, 2022 08:56
fomajob
Learn about the best methods of Selling Server online, why you need to sell sooner than you think, and the different options available.
December 2, 2022 10:35
fomajob
The accumulated onto your blog site despite the fact paying off acceptance just many tid little submits. Gratifying strategy for honest, I will be bookmarking before you start acquire merchandise realization spgs right in place. https://totoguide.net/
December 3, 2022 10:27
Thank you because you have been willing to talk about information with us. we shall always appreciate all you need done here because I understand you’re very concerned with our. 12bet link
December 20, 2022 11:18
Incredible this help is definitely outstanding it truly helped me plus our kids, appreciate it! slot
December 7, 2022 10:53
AA
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks… acim
December 8, 2022 09:11
Can I just now say such a relief to uncover a person that actually knows what theyre preaching about over the internet. You actually have learned to bring a worry to light and produce it important. More people need to look at this and can see this side with the story. I cant think youre less popular simply because you definitely provide the gift. 우리카지노쿠폰
December 24, 2022 10:07
as
That’s a very good point of view, yet is just not create any kind of sence at all discussing this mather. Any kind of approach thanks as well as i had try to promote the publish towards delicius but it is very much a problem with your blogging on earth do you you should recheck this. many thanks once again. big boobs sex dolls
December 29, 2022 11:48
as
You produced some decent points there. I looked on the net for any issue and found most people goes as well as with the site. 강남아이스
December 31, 2022 06:41
AS
Great post, you have pointed out some great points, I besides believe this is a very wonderful website. 아이스작대기
December 31, 2022 07:22
SHAHBAZANSARI
I wan’t going to comment as this posts a bit old now, but just wanted to say thanks. ключар София
December 31, 2022 11:20
SHAHBAZANSARI
Hey, just looking around some blogs, seems a pretty nice platform you are using. I’m currently using WordPress for a few of my sites but looking to change one particular of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it? Hindi Love Shayri
January 1, 2023 12:25
coweni5
Hello there, just became alert to your blog through Google, and found that it’s truly informative. I am going to watch out for brussels. I’ll appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers! nature good morning images
January 3, 2023 11:54
fomajob
A great content material as well as great layout. Your website deserves all of the positive feedback it’s been getting. I will be back soon for further quality contents. sbobet online
January 4, 2023 12:51
fomajob
Hey, what kind of anti-spam plugin do you use for your blog.;-’-` สล็อต โจ๊กเกอร์999
January 5, 2023 09:35
DFGHJKJLL
Dude.. I am not much into reading, but somehow I got to read plenty of articles on your blog. Its amazing how interesting it is for me to check out you incredibly often. cenforce 100
January 5, 2023 16:37
DFGHJKJLL
Intimately, the post is actually the freshest on that laudable topic. I match in with your conclusions and also definitely will thirstily look forward to your approaching updates. Just saying thanks can not simply be adequate, for the outstanding lucidity in your writing. I can immediately grab your rss feed to stay informed of any kind of updates. Solid work and much success in your business enterprize! cenforce 150
January 9, 2023 13:43
fomajob
I’m extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a nice blog like this one today.. 토토다모임사설토토
January 11, 2023 16:30
DFGHJKJLL
Splendid post. I discover new things upon different weblogs daily. Couple of stimulating to see content using their company authors and turn out to be acquainted with a small something their particular. I’d think to use some inside the information on my blog need to do not thoughts. Obviously I’ll provides a link back up in internet site. Thank you sharing. Sladjana Milojev
January 12, 2023 09:15
Psilocybin Retreats Jamaica
I’d need to consult you here. Which isn’t some thing Which i do! I enjoy reading a post that can make people feel. Also, appreciate your allowing me to comment! Psilocybin Retreats Jamaica
January 12, 2023 09:44
SDBFCBF
This is why it’s a good idea that you can proper study ahead of producing. You are able to generate greater distribute using this method. slot online
January 14, 2023 09:42
fomajob
到會 Delicious food? Kama 到 will help you with service, 2 100 people 到會外賣 package recommendation, a bite of party snacks, seafood, vegetarian 到會推介 food for you to choose, and it is no problem to place an order on the same day. Free shipping in Hong Kong, you can buy it anytime, anywhere 外賣到會, most suitable for a group of friends to hold parties, company events, children’s birthday celebrations, weddings, BB 100-day banquets, family gatherings! Book an inquiry now!
January 16, 2023 11:24
Airport Car Service
Do you need a luxury sedan for a corporate meeting, airport transfer, a special occasion stretch limo or party bus? Our Traveler’s Choice limo service DC provides professionally chauffeured limousine, luxury sedan, luxury SUVs, party buses, limo coaches and vans at extremely affordable rates. We offer the most efficient executive sedan and limo service Washington DC serving the metropolitan area, including Virginia, Maryland as well as the three key airports namely Reagan National airport, Dulles airport, and Baltimore airport BWI. Airport Car Service
January 29, 2023 11:43
AS
I should say also believe that mesothelioma is a exceptional form of melanoma that is usually found in all those previously exposed to asbestos. Cancerous cells form while in the mesothelium, which is a protecting lining that covers most of the body’s organs. These cells ordinarily form from the lining on the lungs, abdominal area, or the sac that encircles the heart. Thanks for sharing your ideas. German Rottweiler puppies for sale
February 9, 2023 12:04
fomajob
Hello Ridiculous Guide! Current and up-to-date info to help you get the most out of cbd for anxiety. Enjoy. Ridiculously.
February 14, 2023 13:00
DFGHJKJLL
hello there boys it’s actually I am, Simply put I have fallen for a second time. Document haven?¯t been in this incredible website for many years since I have shed items private data, at the present I recently uncovered them back! Can miss all of you all of you seem to be our friends I presume all of you. Nice post! west palm beach financial advisor
March 25, 2023 18:45
fomajob
Trees are an essential part of our environment, but sometimes they need to be removed due to various reasons such as age, disease, or structural issues. tree removal sydney is a complicated process that requires proper knowledge and expertise to perform safely and efficiently. If you need tree removal service in Sydney, Black Forest Tree Service is the right company to call.
February 27, 2023 07:25
fomajob
Holidays Worldwide4u is a travel meta search site that finds and compares the best priced offers and top flight and hotel deals best deals on flights, cruises, car rental deals, book taxi online, book airport transfers, tours, bike rentals, activities, concerts, best deals on hotels, hotel booking, book hotel online, car rental discounts, book car rentals, taxi booking online, and theater tickets. flight and hotel deals
March 1, 2023 11:06
fomajob
Fortunately, there are several reliable garage door repair near Yorba Linda that can help you with any garage door issue you may encounter. In this article, we will discuss the common garage door problems that require professional repair, as well as how to choose the best Yorba Linda garage doors company.
March 28, 2023 06:26
fomajob
fezbet italia is one of the best online sports betting bookmakers in the world, offering the best odds on many sports and a bonus of 100 up to €100 on the first deposit. Fezbet has already enjoyed considerable success among players. While not enjoying a regular ADM license, the portal enjoys a license granted to it by the Government of Curacao, which allows it to act legally. In this article, we will explore Fezbet and its services in detail.
March 11, 2023 09:54
sad
The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. Balonslot