مرحباً،
كنت أحاول بدء تثبيت تطوير أوبونتو للعمل على الإصدار الجديد من القالب الخاص بي. إنها النسخة الخادمة من نظام التشغيل لذلك لا يمكنني الوصول مباشرة إلى فايرفوكس. لا يمكنني تشغيل تثبيت عادي لأن المنفذ :80 مشغول بواسطة Pi-hole (وإعداد nginx سيسبب مشاكل أكثر مما يستحق).
إذا ذهبت إلى عنوان IP المحلي الخاص به والمنفذ :4200، فإنه يقول إنه لا يمكن الاتصال:
هل هناك طريقة لجعله يعمل على 0.0.0.0:4200 (أو لهذا الغرض 192.168.0.24:4200)؟ شكراً!
sam
(Sam Saffron)
14 مايو 2024، 6:47ص
2
إنه محفوف بالمخاطر، لأنك لا تريد فتح هذا للعالم…
أعتقد أن هذا يقوم بعمل جيد في الإجابة؟
AI Conversation with Gpt-4o
sam : Looking at discourse source code is there some way to get a dev install to bind to a custom ip or public ip?
gpt4o_bot : Yes, you can bind a Discourse development installation to a custom IP address or public IP. This is typically controlled via your web server or the configuration of the Discourse app itself.
For Discourse running in development mode via the Rails server, you can specify the IP address it binds to when you start the server. By default, it binds to localhost
Here’s how you can do it:
Start the …
sam : ok but search the source code there may be a custom ENV var for it…
gpt4o_bot : It appears that the Discourse repository includes a relevant environment variable named UNICORN_BIND_ALL, which is used in the unicorn configuration. You can use this environment variable to control the IP address that the Unicorn server binds to. Here are the details:
File: config/unicorn.conf.rb
Code Snippet:
listen ENV["UNICORN_LISTENER"] || "#{(ENV["UNICORN_BIND_ALL"] ? "" : "127.0.0…
...
Read full transcript
إعجابَين (2)
الجهاز غير مُعاد توجيهه، ولن يكون مفتوحًا للإنترنت.
ما فهمته من الذكاء الاصطناعي هو --b 0.0.0.0، سأجرب ذلك عندما أتمكن.
ما زال لا يعمل بشكل صحيح؟
يمكنني الوصول إلى أشياء أخرى تعمل بشكل جيد…