أعلم أنه يُنصح بتشغيل discourse على خادم خاص به، لكنني أدير هذا المشروع من جيبه الخاص، وهو في الأساس هواية لا توجد لها آفاق أو نية لتحقيق الربح في المدى القصير على الأقل.
لذلك، فكرت بدلاً من شراء خادم VPS آخر في طلب عنوان IP ثانٍ وتشغيل WordPress على خادم Apache افتراضي يعتمد على عنوان IP، مما سيساعد في الحفاظ على انخفاض التكاليف.
If you are familiar with reverse proxy configuration, you don’t need the second IP.
You can run both Discourse and Wordpress listening on unix sockets (or higher ports) and run a reverse proxy software in front (I recommend Caddy) to serve on the same IP your blog.example.com and forum.example.com.
That said, if you aren’t familiar with this type of setup, running each in it’s own VPS is much easier as you can just follow the vast documentation for each.
I did something with haproxy when I was initially trying discourse. I was somewhat of a noob and still am in matters of servers and stuff but did anyway, and learned a bit about haproxy in the process. If I recall correctly there were issues with SSL, and the behavior of discourse whas somewhat inestable but guess I did I do something wrong.
So my question is it possible to do the configuration you recommend without instability and “funny” issues, without extreme amounts of fine tuning?
I remember when I did my trials I followed the apache guide. What is nor clear from the article is whether SSL should be disabled upon rebuilding discourse (and whether disabling it is accomplished by just not entering an email address for let’s encrypt), and what ports should be “exposed” on discourse/app.yml (the guide only shows who the line …
“8888:80” # fwd host port 8888 to container port 80 (http)
… is supposed to look, but nothing about the immediately following line in the app.yml file (the one than by default looks…
“443:443” # https
… should look like.
PS. While looking at the app.yml file to write that post I realized the following lines are present there:
##Uncomment these two lines if you wish to add Lets Encrypt (https)
“templates/web.ssl.template.yml”
“templates/web.letsencrypt.ssl.template.yml”
… however, as of right now, my discourse app is running with SSL enabled but with these likes uncommented. How crucial commenting these lines is for my current setup (without a proxy) or for my desired setup (with a proxy and apache-wordpress)?
Thank you this didi it for me. My VPS provider offers inexpensive “floating IPs” in addition to the main IP configured on the VPS. This solution is very neat for me. It should be better documented as it is so simple.
أعلم أن هذا موضوع قديم ولكني أردت أن أشكركم يا رفاق، فقد ينقذ هذا أيامًا من العمل على مشكلة مماثلة كنت أتعامل معها. شكرًا لكم على مشاركة هذه المعلومات التي لا تقدر بثمن مع الجميع!!