הדרכה להגדרת Discourse: Hetzner VDS + Namecheap Private Email SMTP

שלום,

אני מתכנן להקים פורום Discourse חדש וברצוני להבהיר מספר נקודות:

שרת: ארכוש VDS מ-Hetzner. איזו מערכת הפעלה מומלצת עבור Discourse?

דוא"ל/SMTP: אני שוקל להשתמש ב-Namecheap Private Email. האם שירות SMTP זה יעבוד בצורה חלקה במהלך ההתקנה של Discourse?

שלבי התקנה: לאחר רכישת ה-VDS של Hetzner, האם תוכל לספק הדרכה שלב אחר שלב כיצד להתקין את Discourse מאפס?

דומיין ו-IP: לאחר רכישת ה-VDS, האם עלי לחבר שם דומיין תחילה, או שאוכל להתחיל את ההתקנה דרך כתובת ה-IP ולהוסיף את הדומיין מאוחר יותר?

יהיו לי מוכנים מראש גם ה-VDS של Hetzner וגם שירות הדוא"ל של Namecheap.

כל הדרכה שלב אחר שלב המתאימה למישהו ללא ניסיון קודם תתקבל בברכה רבה.

תודה מראש.

Here you will find everything you are looking for regarding the installation :slight_smile:
https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md

3 לייקים

Hi!

Depends on your forum’s size and activity.

If it’s small, a CX22 for 5€/month will be fine.

A CAX11 (ARM architecture) has the same specs and price, but I find that Discourse runs even better on ARM than x86, not sure why. The drawback is that there’s no official ARM-compatible #email-receiver image, if you intend to use it. There’s a fork that works instead.

Yes, you can’t install Discourse without a domain name.

5 לייקים

זה אולי נראה לך קל, אבל לי זה מרגיש קצת מסובך.

האם מספיק להמשיך באמצעות כתובת ה-IP של ה-VDS, או שיש צורך לקשר שם מתחם?

האם אני צריך ליצור שטח/מחיצה ריק נוסף ב-VDS?

והאם יש שירותים או אנשי מקצוע שיכולים לספק את ההגדרה הזו כשירות?

מכיוון שמעולם לא קישרתי שם מתחם בעבר, אני מניח שזו הסיבה שלא הצלחתי להמשיך בהתקנה.
התחברתי באמצעות SSH באמצעות כתובת ה-IP בלבד, אך ההתקנה אפילו לא התחילה.

A small forum will work with a 40 GB disk, no additional space needed.

It was the same for me when I started my Discourse journey. I never used Linux or SSH.

Providing a how-to about how to connect to your server hosted by a certain provider might be a bit out of the scope of this support forum, but anyone is free to help, of course.

When you create a server on Hetzner, you’ll have the choice between using an SSH key file or a regular login/password (it will be generated and sent by email if I remember well).

Plenty of guides on the internet will describe how to connect to a server via SSH. The goal you want to achieve is to access the server’s command line.

As for how to connect the domain to the server’s IP, it’s done through the DNS management from your domain name’s provider admin interface.

If you’re willing to pay for help, you can post in Marketplace :slight_smile:

2 לייקים

התקנתי את זה וזה עבד. תודה על ההצעות.

I don’t think Namecheap Private Email is a transactional mail service, and hence may not be the best way to run it with Discourse. You should look at options like Brevo, MailGun or Amazon SES.

Namecheap Private Email אינו מיועד רק לשימוש בתיבת דואר נכנס (IMAP/POP); הוא תומך באופן מלא במשלוח יוצא מאובטח של SMTP גם כן. בהגדרות ה-Discourse שלי הגדרתי:

  • mail.privateemail.com כמארח ה-SMTP

  • פורט 465 / SSL

  • DISCOURSE_SMTP_ENABLE_START_TLS: false

  • DISCOURSE_SMTP_FORCE_TLS: true

ואז הרצתי ./launcher rebuild app כדי להחיל את ההגדרות.
רשומות SPF, DKIM ו-DMARC גם מוגדרות במלואן דרך Cloudflare DNS.

כתוצאה מכך, Discourse מתחבר לשרת ה-SMTP של Namecheap באופן מאובטח דרך 465/SSL ובהתאם מלא לתקני דואר אלקטרוני.
בהתחשב בנפח הדואר האלקטרוני הנוכחי, אין צורך בשירות דואר אלקטרוני טרנזקציונלי נוסף כגון Mailgun, Brevo, או Amazon SES בשלב זה.

3 לייקים

I’m fairly certain NameCheap Private Email isn’t a transactional mail service (I can’t find anything to say it is?). Discourse recommends a transactional mail service be used. You may encounter problems like this if you use things like NameCheap Private Email. If it works for you, then :person_shrugging:.

The transactional mail providers I suggested above are mostly free (except Amazon SES, but it’s still quite cheap). Brevo is 300/day, IIRC Mailgun is 100/day.

לייק 1

It might be a good idea to look if their terms of service allow using it for transactional emails :slight_smile:

If it’s not allowed, you risk being sanctioned in some way or having the emails falsely identified as spam and blocked. I speak from experience (not with NameCheap tho).

2 לייקים

namecheap מתה עליי. לפני זמן מה דוד שלי חלה בסרטן. הקמתי מופע כדי לתאם תמיכה משפחתית.

ואז

namecheap החליטה חודשים לאחר מכן שאני צריך להעלות מסמכי זיהוי מדינתיים.

עורך הדין של המשפחה שלנו אמר בתקיפות לא. לא רשויות אכיפת חוק. לא בנק. לא ה-IRS.

אז namecheap ביטלה את הדומיין מתחתיי.

אני ממליץ על gandi. Godaddy נוראית באופן שונה.