نعم، لكن المشكلة هي أن جميع المستخدمين لديهم نفس عنوان IP..
أضفت هذا إلى ملف app.yml وأجرى الاختبار الآن
run:
- replace:
filename: /etc/nginx/conf.d/discourse.conf
from: “server {”
to: |
server {
set_real_ip_from 192.168.1.250;
real_ip_header X-Forwarded-For;
real_ip_recursive on;- exec: echo “Beginning of custom commands”
- exec: echo “End of custom commands”
أجريت الاختبار الآن من سطح المكتب والهاتف المحمول
أحصل على عناوين IP الصحيحة ![]()