بعد إعادة بناء التطبيق لإضافة قالب من 🇨🇳 The IP address in Discourse’s user information shows CloudFlare’s IP address | Discourse 的用户信息中的 IP 地址显示的是 CloudFlare 的 IP 地址
لاحظت أنني لا أستطيع تشغيل موقعي https://forum.beginner.center/
لقد جربت إعادة تشغيل المتصفح والكمبيوتر والخادم، وتغيير المتصفح، لكن لا يزال الأمر لا يعمل
ملف app.yml الخاص بي
## هذا هو قالب حاوية Discourse Docker الكل في واحد، المستقل
##
## بعد إجراء تغييرات على هذا الملف، يجب عليك إعادة البناء
## /var/discourse/launcher rebuild app
##
## كن حذراً للغاية عند التعديل!
## ملفات YAML حساسة جداً للأخطاء في المسافات البيضاء أو المحاذاة!
## قم بزيارة http://www.yamllint.com/ للتحقق من صحة هذا الملف عند الحاجة
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
# - "templates/web.china.template.yml"
- "templates/web.template.yml"
## قم بإلغاء التعليق عن السطر التالي لتمكين مستمع IPv6
#- "templates/web.ipv6.template.yml"
- "templates/web.ratelimited.template.yml"
## قم بإلغاء التعليق عن هذين السطرين إذا كنت ترغب في إضافة Lets Encrypt (https)
- "templates/web.ssl.template.yml"
- "templates/web.letsencrypt.ssl.template.yml"
# - "templates/cloudflare.template.yml"
## أي منافذ TCP/IP يجب أن تعرضها هذه الحاوية؟
## إذا كنت تريد من Discourse مشاركة منفذ مع خادم ويب آخر مثل Apache أو nginx،
## راجع https://meta.discourse.org/t/17247 للحصول على التفاصيل
expose:
- "80:80" # http
- "443:443" # https
- "587:587"
params:
db_default_text_search_config: "pg_catalog.english"
## قم بتعيين db_shared_buffers إلى الحد الأقصى 25% من إجمالي الذاكرة.
## سيتم تعيينها تلقائياً بواسطة bootstrap بناءً على ذاكرة الوصول العشوائي المكتشفة، أو يمكنك تجاوزها
db_shared_buffers: "128MB"
## يمكن أن يحسن أداء الفرز، لكنه يضيف استخدام الذاكرة لكل اتصال
#db_work_mem: "40MB"
## أي إصدار Git يجب أن تستخدمه هذه الحاوية؟ (الافتراضي: tests-passed)
#version: tests-passed
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
# DISCOURSE_DEFAULT_LOCALE: en
## كم عدد طلبات الويب المتزامنة التي يتم دعمها؟ يعتمد على الذاكرة ونوى المعالج.
## سيتم تعيينها تلقائياً بواسطة bootstrap بناءً على وحدات المعالجة المركزية المكتشفة، أو يمكنك تجاوزها
UNICORN_WORKERS: 2
## TODO: اسم النطاق الذي ستستجيب له هذه النسخة من Discourse
## مطلوب. لن يعمل Discourse مع رقم IP مجرد.
DISCOURSE_HOSTNAME: forum.beginner.center
## قم بإلغاء التعليق إذا كنت تريد أن تبدأ الحاوية بنفس اسم النطاق
## (-h option) المحدد أعلاه (الافتراضي "$hostname-$config")
#DOCKER_USE_HOSTNAME: true
## TODO: قائمة عناوين البريد الإلكتروني المفصولة بفواصل سيتم تعيينها كمسؤول ومطور
## عند التسجيل الأولي، مثال 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: 'whitewatercn@outlook.com'
## TODO: خادم البريد SMTP المستخدم للتحقق من الحسابات الجديدة وإرسال الإشعارات
## عنوان SMTP واسم المستخدم وكلمة المرور مطلوبة
## تحذير: قد يسبب حرف '#' في كلمة مرور SMTP مشاكل!
DISCOURSE_SMTP_ADDRESS: smtpdm.aliyun.com
DISCOURSE_SMTP_PORT: 80
DISCOURSE_SMTP_USER_NAME: noreply@noreply.beginner.center
DISCOURSE_SMTP_PASSWORD: REDACTED
DISCOURSE_SMTP_ENABLE_START_TLS: false # (اختياري، الافتراضي true)
DISCOURSE_SMTP_DOMAIN: noreply.beginner.center
DISCOURSE_NOTIFICATION_EMAIL: noreply@noreply.beginner.center
## إذا أضفت قالب Lets Encrypt، قم بإلغاء التعليق أدناه للحصول على شهادة SSL مجانية
LETSENCRYPT_ACCOUNT_EMAIL: noreply@noreply.beginner.center
## عنوان CDN http أو https لهذه النسخة من Discourse (مُعد للاستخراج)
## راجع https://meta.discourse.org/t/14857 للحصول على التفاصيل
#DISCOURSE_CDN_URL: https://discourse-cdn.example.com
## مفتاح عنوان IP الجغرافي من Maxmind للبحث عن عناوين IP
## راجع https://meta.discourse.org/t/-/137387/23 للحصول على التفاصيل
#DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456
## حاوية Docker لا تحتوي على حالة؛ يتم تخزين جميع البيانات في /shared
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
## تذهب الإضافات هنا
## راجع https://meta.discourse.org/t/19157 للحصول على التفاصيل
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-adplugin.git
- git clone https://github.com/paviliondev/discourse-ratings.git
- git clone https://github.com/discourse/discourse-topic-voting
- git clone https://github.com/discourse/discourse-whos-online
- git clone https://github.com/discourse/discourse-solved
- git clone https://github.com/paviliondev/discourse-news
- git clone https://github.com/discourse/discourse-steam-login
- git clone https://github.com/discourse/discourse-table-builder
- git clone https://github.com/merefield/discourse-ai-topic-summary
- git clone https://github.com/discourse/discourse-post-voting
- git clone https://github.com/discourse/discourse-ai
- git clone https://github.com/discourse/discourse-follow
- git clone https://github.com/discourse/discourse-reactions
- git clone https://github.com/discourse/discourse-gamification
- git clone https://github.com/discourse/discourse-yearly-review
- git clone https://github.com/whitewatercn/discourse-embed-bilibili
- git clone https://github.com/discourse/discourse-automation
- git clone https://github.com/discourse/discourse-cakeday
- git clone https://github.com/communiteq/discourse-restrict-pms-to-group
- git clone https://github.com/discourse/discourse-math
## أي أوامر مخصصة للتشغيل بعد البناء
run:
- exec: echo "Beginning of custom commands"
## إذا كنت تريد تعيين عنوان البريد الإلكتروني 'من' لتسجيلك الأول، قم بإلغاء التعليق وتغيير:
## بعد الحصول على أول بريد إلكتروني للتسجيل، قم بإعادة التعليق على السطر. يجب تشغيله مرة واحدة فقط.
- exec: rails r "SiteSetting.notification_email='noreply@noreply.beginner.center'"
- exec: echo "End of custom commands"
مخرجات ./launcher logs app
x86_64 arch detected.
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/01-cleanup-web-pids
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/letsencrypt
[Wed 06 Mar 2024 01:28:00 PM UTC] Domains not changed.
[Wed 06 Mar 2024 01:28:00 PM UTC] Skip, Next renewal time is: 2024-04-11T00:09:12Z
[Wed 06 Mar 2024 01:28:00 PM UTC] Add '--force' to force to renew.
[Wed 06 Mar 2024 01:28:00 PM UTC] Installing key to: /shared/ssl/forum.beginner.center.key
[Wed 06 Mar 2024 01:28:00 PM UTC] Installing full chain to: /shared/ssl/forum.beginner.center.cer
[Wed 06 Mar 2024 01:28:00 PM UTC] Run reload cmd: sv reload nginx
warning: nginx: unable to open supervise/ok: file does not exist
[Wed 06 Mar 2024 01:28:00 PM UTC] Reload error for :
[Wed 06 Mar 2024 01:28:01 PM UTC] Domains not changed.
[Wed 06 Mar 2024 01:28:01 PM UTC] Skip, Next renewal time is: 2024-04-11T00:09:17Z
[Wed 06 Mar 2024 01:28:01 PM UTC] Add '--force' to force to renew.
[Wed 06 Mar 2024 01:28:01 PM UTC] Installing key to: /shared/ssl/forum.beginner.center_ecc.key
[Wed 06 Mar 2024 01:28:01 PM UTC] Installing full chain to: /shared/ssl/forum.beginner.center_ecc.cer
[Wed 06 Mar 2024 01:28:01 PM UTC] Run reload cmd: sv reload nginx
warning: nginx: unable to open supervise/ok: file does not exist
[Wed 06 Mar 2024 01:28:01 PM UTC] Reload error for :
Started runsvdir, PID is 538
ok: run: redis: (pid 547) 0s
ok: run: postgres: (pid 553) 0s
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/discourse.conf:60
supervisor pid: 551 unicorn pid: 578
Shutting Down
run-parts: executing /etc/runit/3.d/01-nginx
ok: down: nginx: 0s, normally up
run-parts: executing /etc/runit/3.d/02-unicorn
(551) exiting
ok: down: unicorn: 1s, normally up
run-parts: executing /etc/runit/3.d/10-redis
ok: down: redis: 0s, normally up
run-parts: executing /etc/runit/3.d/99-postgres
ok: down: postgres: 0s, normally up
ok: down: nginx: 3s, normally up
ok: down: postgres: 1s, normally up
ok: down: redis: 2s, normally up
ok: down: cron: 0s, normally up
ok: down: unicorn: 3s, normally up
ok: down: rsyslog: 0s, normally up
run-parts: executing /etc/runit/1.d/00-ensure-links
run-parts: executing /etc/runit/1.d/00-fix-var-logs
run-parts: executing /etc/runit/1.d/01-cleanup-web-pids
run-parts: executing /etc/runit/1.d/anacron
run-parts: executing /etc/runit/1.d/cleanup-pids
Cleaning stale PID files
run-parts: executing /etc/runit/1.d/copy-env
run-parts: executing /etc/runit/1.d/letsencrypt
[Wed 06 Mar 2024 01:51:54 PM UTC] Domains not changed.
[Wed 06 Mar 2024 01:51:54 PM UTC] Skip, Next renewal time is: 2024-04-11T00:09:12Z
[Wed 06 Mar 2024 01:51:54 PM UTC] Add '--force' to force to renew.
[Wed 06 Mar 2024 01:51:54 PM UTC] Installing key to: /shared/ssl/forum.beginner.center.key
[Wed 06 Mar 2024 01:51:54 PM UTC] Installing full chain to: /shared/ssl/forum.beginner.center.cer
[Wed 06 Mar 2024 01:51:54 PM UTC] Run reload cmd: sv reload nginx
fail: nginx: runsv not running
[Wed 06 Mar 2024 01:51:54 PM UTC] Reload error for :
[Wed 06 Mar 2024 01:51:54 PM UTC] Domains not changed.
[Wed 06 Mar 2024 01:51:54 PM UTC] Skip, Next renewal time is: 2024-04-11T00:09:17Z
[Wed 06 Mar 2024 01:51:54 PM UTC] Add '--force' to force to renew.
[Wed 06 Mar 2024 01:51:55 PM UTC] Installing key to: /shared/ssl/forum.beginner.center_ecc.key
[Wed 06 Mar 2024 01:51:55 PM UTC] Installing full chain to: /shared/ssl/forum.beginner.center_ecc.cer
[Wed 06 Mar 2024 01:51:55 PM UTC] Run reload cmd: sv reload nginx
fail: nginx: runsv not running
[Wed 06 Mar 2024 01:51:55 PM UTC] Reload error for :
Started runsvdir, PID is 531
ok: run: redis: (pid 543) 0s
ok: run: postgres: (pid 548) 0s
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/discourse.conf:60
supervisor pid: 541 unicorn pid: 571