@dovid כתב בnodebb מסרב להתחבר לwebsocket:
הדומיין שלך מאחורי cloudflair (כלומר עם פרוקסי - ענן צהוב?)
כן
@dovid כתב בnodebb מסרב להתחבר לwebsocket:
הדומיין שלך מאחורי cloudflair (כלומר עם פרוקסי - ענן צהוב?)
כן
@מן-המודיעין תודה על התגובה המפורטת!
אבל יש לי בעיה, התחלתי אכן לעבוד עם זה עם דביאן על ווינדוס - עם זה אבל אני לא יכול להתקין את os-agent_1.0.0_linux_x86_64.deb
כמו שכתוב פה - כנראה בגלל שזה על ווינדוס
היה לך את הבעיה הנ"ל?
התקנתי פורום nodebb אצלי, ברוך ה' זה רץ, אבל אני רוצה כל הזמן שיש קריאות ל socket.io של הפורום שחוזרים עם שגיאה 403 (התגובה היא: {"code":4,"message":"Forbidden"}
)
מצורף תמונה
זה קריאות חוזרות ונשנות כל הזמן
הכנסתי ב NGINX לפי מה שהם כתבו
server {
listen 80;
server_name forum.****.ovh www.forum.****.ovh;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:4567;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
וזה מה שיש בקובץ config.json
{
"url": "https://forum.****.ovh",
"secret": "d602ffd4-3cc7-4cb7-8fe6-9fe927a931db",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "nodebb",
"password": "****",
"database": "nodebb",
"uri": ""
},
"port": "4567"
}
והנה פלט מהרצת ./nodebb dev
NodeBB v3.8.4 Copyright (C) 2013-2024 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For the full license, please visit: http://www.gnu.org/copyleft/gpl.html Clustering enabled: Spinning up 1 process(es). 2024-09-09T21:33:20.074Z [4567/768707] - verbose: * using configuration stored in: /***/nodebb/config.json 2024-09-09T21:33:20.078Z [4567/768707] - info: Initializing NodeBB v3.8.4 https://forum.****.ovh 2024-09-09T21:33:20.079Z [4567/768707] - verbose: * using mongo store at 127.0.0.1:27017 2024-09-09T21:33:20.079Z [4567/768707] - verbose: * using themes stored in: /***/nodebb/node_modules 2024-09-09T21:33:21.397Z [4567/768707] - verbose: [minifier] utilizing a maximum of 3 additional threads (node:768707) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) 2024-09-09T21:33:21.506Z [4567/768707] - verbose: Checking dependencies for outdated modules 2024-09-09T21:33:21.823Z [4567/768707] - verbose: [notifications.init] Registering jobs. 2024-09-09T21:33:21.825Z [4567/768707] - verbose: [user/jobs] (Re-)starting jobs... 2024-09-09T21:33:21.827Z [4567/768707] - verbose: [user/jobs] Starting job (digest.daily) 2024-09-09T21:33:21.829Z [4567/768707] - verbose: [user/jobs] Starting job (digest.weekly) 2024-09-09T21:33:21.831Z [4567/768707] - verbose: [user/jobs] Starting job (digest.monthly) 2024-09-09T21:33:21.832Z [4567/768707] - verbose: [user/jobs] Starting job (reset.clean) 2024-09-09T21:33:21.832Z [4567/768707] - verbose: [user/jobs] jobs started 2024-09-09T21:33:21.834Z [4567/768707] - verbose: [scheduled topics] Starting jobs. 2024-09-09T21:33:21.841Z [4567/768707] - verbose: [emailer] Setting up fallback transport 2024-09-09T21:33:21.895Z [4567/768707] - info: [themes] Using theme nodebb-theme-persona 2024-09-09T21:33:21.895Z [4567/768707] - verbose: [plugins] Initializing plugins system 2024-09-09T21:33:21.929Z [4567/768707] - verbose: [plugins] Found 1 scss file(s) for plugin nodebb-plugin-composer-default 2024-09-09T21:33:21.933Z [4567/768707] - verbose: [emailer] Built custom email templates 2024-09-09T21:33:21.934Z [4567/768707] - verbose: [plugins] Found 13 AMD-style module(s) for plugin nodebb-plugin-composer-default 2024-09-09T21:33:21.935Z [4567/768707] - verbose: [plugins] Found 2 js file(s) for plugin nodebb-plugin-composer-default2024-09-09T21:33:21.936Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default 2024-09-09T21:33:21.941Z [4567/768707] - verbose: [plugins] Found 4 AMD-style module(s) for plugin nodebb-theme-persona 2024-09-09T21:33:21.942Z [4567/768707] - verbose: [plugins] Found 2 js file(s) for plugin nodebb-theme-persona 2024-09-09T21:33:21.943Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-theme-persona 2024-09-09T21:33:21.991Z [4567/768707] - verbose: [plugins] Found 1 scss file(s) for plugin nodebb-plugin-markdown 2024-09-09T21:33:21.991Z [4567/768707] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-markdown 2024-09-09T21:33:21.992Z [4567/768707] - verbose: [plugins] Found 2 AMD-style module(s) for plugin nodebb-plugin-markdown 2024-09-09T21:33:21.992Z [4567/768707] - verbose: [plugins] found 1 static directories for nodebb-plugin-markdown 2024-09-09T21:33:21.994Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown 2024-09-09T21:33:22.004Z [4567/768707] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-mentions 2024-09-09T21:33:22.005Z [4567/768707] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-mentions 2024-09-09T21:33:22.008Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions 2024-09-09T21:33:22.010Z [4567/768707] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-widget-essentials 2024-09-09T21:33:22.010Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials 2024-09-09T21:33:22.013Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials 2024-09-09T21:33:22.042Z [4567/768707] - verbose: [plugins] Found 1 scss file(s) for plugin nodebb-plugin-emoji 2024-09-09T21:33:22.042Z [4567/768707] - verbose: [plugins] Found 1 acpScss file(s) for plugin nodebb-plugin-emoji 2024-09-09T21:33:22.048Z [4567/768707] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-emoji 2024-09-09T21:33:22.049Z [4567/768707] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-emoji 2024-09-09T21:33:22.049Z [4567/768707] - verbose: [plugins] Found 5 AMD-style module(s) for plugin nodebb-plugin-emoji 2024-09-09T21:33:22.049Z [4567/768707] - verbose: [plugins] found 1 static directories for nodebb-plugin-emoji 2024-09-09T21:33:22.051Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji 2024-09-09T21:33:22.071Z [4567/768707] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-android 2024-09-09T21:33:22.073Z [4567/768707] - info: [plugins] Plugins OK 2024-09-09T21:33:22.108Z [4567/768707] - verbose: [plugins] All plugins reloaded and rerouted 2024-09-09T21:33:22.127Z [4567/768707] - info: [api] Adding 0 route(s) to `api/v3/plugins` 2024-09-09T21:33:22.139Z [4567/768707] - info: [router] Routes added 2024-09-09T21:33:22.142Z [4567/768707] - verbose: [meta/blacklist] Loading 0 blacklist rule(s) 2024-09-09T21:33:22.145Z [4567/768707] - info: 🎉 NodeBB Ready 2024-09-09T21:33:22.147Z [4567/768707] - info: 🤝 Enabling 'trust proxy' 2024-09-09T21:33:22.149Z [4567/768707] - info: 📡 NodeBB is now listening on: 0.0.0.0:4567 2024-09-09T21:33:22.149Z [4567/768707] - info: 🔗 Canonical URL: https://forum.****.ovh ^C2024-09-09T21:39:08.613Z [4567/768707] - info: [app] Shutdown (SIGTERM/SIGINT/SIGQUIT) Initialised. 2024-09-09T21:39:08.617Z [4567/768707] - info: [app] Web server closed to connections.
מישהו יכול לעזור לי להבין איפה הבעיה?
@dovid קודם כל תודה רבה!!
הכנסתי את הקובץ בהתאם להוראות שם
# Sample nginx configuration file for phpBB.
# Tested with:
# - nginx 0.8.35
# - nginx 1.17.7 (mainline)
#
# Filename: /etc/nginx/sites-available/example.com.conf
#
# Replace example.com with your own domain name.
# If you want to use the X-Accel-Redirect feature,
# add the following to your config.php.
#
# define('PHPBB_ENABLE_X_ACCEL_REDIRECT', true);
#
# See http://wiki.nginx.org/XSendfile for the details
# on X-Accel-Redirect.
# Sample FastCGI server configuration.
# Filename: /etc/nginx/conf.d/php.conf
#
# upstream php {
# server unix:/run/php-fpm/php-fpm.sock;
# }
# Remove www domain prefix.
server {
listen 80;
# IPv6
listen [::]:80;
# Remove www
server_name www.forum.****.ovh;
return 301 $scheme://forum.****.ovh$request_uri;
}
# Board configuration.
server {
listen 80;
# IPv6
listen [::]:80;
server_name forum.****.ovh;
root /var/www/forum;
# phpBB uses index.htm
index index.php index.html index.htm;
# Loggers
error_log /var/log/nginx/example.com.error.log warn;
access_log /var/log/nginx/example.com.access.log;
location / {
try_files $uri $uri/ @rewriteapp;
# Pass the php scripts to FastCGI server specified in upstream declaration.
location ~ \.php(/|$) {
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ /app.php$is_args$args;
fastcgi_pass php;
}
# Deny access to internal phpbb files.
location ~ /(config|common\.php|cache|files|images/avatars/upload|includes|(?<!ext/)phpbb(?!\w+)|store|vendor) {
deny all;
# deny was ignored before 0.8.40 for connections over IPv6.
# Use internal directive to prohibit access on older versions.
internal;
}
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
# Correctly pass scripts for installer
location /install/ {
try_files $uri $uri/ @rewrite_installapp =404;
# Pass the php scripts to fastcgi server specified in upstream declaration.
location ~ \.php(/|$) {
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ /install/app.php$is_args$args =404;
fastcgi_pass php;
}
}
location @rewrite_installapp {
rewrite ^(.*)$ /install/app.php/$1 last;
}
# Deny access to version control system directories.
location ~ /\.svn|/\.git {
deny all;
internal;
}
}
והוא נותן לי שגיאה בבדיקת ה nginx
nginx: [emerg] no port in upstream "php" in /etc/nginx/sites-enabled/phpbb:62 nginx: configuration file /etc/nginx/nginx.conf test failed
על השורה הזאת
fastcgi_pass php;
מה הבעיה?
עריכה: תיקנתי את השורות האלו
# upstream php {
# server unix:/run/php-fpm/php-fpm.sock;
# }
ל
upstream php {
server unix:/run/php/php8.2-fpm.sock;
}
ואין שגיאה
אני מנסה להתקין את פורום phpbb, אני מגיע לעמוד ההתקנה
בקישור הזה
https:///phpbb/install/app.php
וכשאני לוחץ על התקנה הוא מפנה אותי לקישור
https:///phpbb/install/app.php/install
שלא קיים (קובץ app.php זה קובץ ולא תיקייה)
זה מה שיש בתיקיית הפרום בשרת
מה זה אמור להיות?
איך מתקנים את זה?
תודה רבה לכל העוזרים!
@mekev כתב בסליקת אשראי נדרים פלוס ב API:
@ששא כתב בסליקת אשראי נדרים פלוס ב API:
יש אייפרם
יש מצב שבגלל מחסור בפסיקים אצל הכותב, דלגת על שני המילים האלה?
זה לא פתרון טוב עבורך?
@ששא כתב בסליקת אשראי נדרים פלוס ב API:
זה לא בממשק
זה רק בשרת
בהמשך לנושא הזה אני רוצה לעבוד כדי לקבל רישיון PCI
הבנתי שהמדובר הוא לעשות חומת אש, להתקין אנטי וירוס ולהצפין נתונים
אני לא כ"כ מתמצא בהתעסקות עם שרתים חוץ מהתקנת מערכת הפעלה וספריות כלשהם וקצת ב NGINX שבזה עזר לי המון אחד מחברי הפורום
השאלה האם אני אוכל לעשות כזה דבר או שזה נשגב מבינתי
לגבי חומת אש, יש במדריך הזה משהו על חומת אש, השאלה האם זה מספיק?
תודה רבה!
@yossiz האמת אתה צודק
אבל המילה רישיון PCI נשמע לי מידי גבוהה ומאחר שראיתי פה כמה נושאים על הנושא הזה עם פתרונות חשבתי לשאול האם מישהו יודע על עוד דרך
אבל צודק...
למעשה, רישיון PCI זה דבר מסובך? מה זה?
@dovid כתב בסליקת אשראי נדרים פלוס ב API:
רישיון נהיגה?
@dovid כתב בסליקת אשראי נדרים פלוס ב API:
מה דורשים ולמה זה לא אפשרי?
מצורף תיעוד מתשובתם
שלום רב, איך ייתכן לסלוק באמצעות API? יש לך רישיון PCI? אליהו
תשובה שניה
אין לפנות ל-API ללא רישיון זה לא חוקי וזה עלול לגרום לחסימה של המסוף שלכם יש אייפרם, וזו הדרך היחידה לבצע סליקת אשראי ע"י מערכת חיצונית מצ"ב תיעוד אליהו
@mekev כתב בסליקת אשראי נדרים פלוס ב API:
@ששא
סליחה על השאלה המוזרה
ניסת לבדוק ישירות מול נדרים?
כמובן
הם דורשים רשיון וכו'
@חגי כתב בסליקת אשראי נדרים פלוס ב API:
@ששא אם אתה סולק בצורה כזו שאתה נותן ממשק למשתמש להכניס את הפרטים, אתה גם יכול לתת לו את הCAPTCHA למלא. כל קפאצ'ה מגיע עם "קוד" שנועד להתאים לשרת של מי שמבקש את הקאפצ'ה, את הקוד הזה אתה לוקח מנדרים ושם בממשק שלך, כשהמשתמש ממלא את הקאפצה אז אתה מקבל את הקוד לשליחה לAPI.
זה לא בממשק
זה רק בשרת
@צבי-ש משרת
אכן לא ישראלי
בשרת ישראלי כן עובד תקין?
ומה אפשר לעשות?
בהמשך לפוסט כאן עם הקוד של @צבי-ש
ניסיתי את הקוד הזה והוא מחזיר לי
{ "Status" : "Error" , "Message" : "נא לסמן \"אני לא רובוט\"" ,"BackMessage" : "NEED CAPTCHA"}
יש למישהו דרך לסליקה ב API עם נדרים?
היה לי גם כזו
$data = [
'MosadId' => $mosad,//מספר מוסד
'CardNumber' => $card,//מספר אשראי
'Tokef' => $date,//תוקף
'CVV' => $cvv,//שלוש ספרות
'Amount' => $sum,//סכום
'Currency' => $currency,//מטבע
'MasofId' => 'Online',
'Tashloumim' => $payment,//מספר תשלומים - null = חד פעמי
'Zeout' => $tz,//תעודת זהות
'Groupe' => $group,//קטגורייה
"ClientName" => $name,//שם
"Avour" => $Comment1,//הערות
"Phone" => $phone,//טלפון
"email" => $email
];
$jsonData = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
$options = [
'http' => [
'method' => 'POST',
'header' => 'Content-type: application/json; charset=utf-8',
'content' => $jsonData
]
];
$context = stream_context_create($options);
$result = file_get_contents('https://matara.pro/nedarimplus/V6/Files/WebServices/DebitCard.aspx', false, $context);
אבל הוא מחזיר לי שגיאה שלא הוכנס מספר מוסד
אשמח אם מישהו יתן לי דרך לסליקה
@ivrtikshoret כתב בגרשיים נוספים לבד בשליחת קובץ מ JS לשרת:
אתה יכול פשוט בשרת להחליף את כל הגרשיים הכפולים לגרשיים אחד
נכון
אבל הבעיה היא שהוא גם הוסיף כמה פעמים-לא תמיד בתחילת מילה או בסוף מילה וכדומה
@yossiz כתב בגרשיים נוספים לבד בשליחת קובץ מ JS לשרת:
@ששא האם ייתכן שכבר לפני ההעלאה יש גרשיים כפולים? תפתח את הקובץ עם עורך טקסט - לא עם אקסל
זה נראה שהבעיה היא בשמירה מאקסל ל CSV
איך צריכים לשמור כדי שזה לא יקרה?
@yossiz כתב בגרשיים נוספים לבד בשליחת קובץ מ JS לשרת:
@ששא האם ייתכן שכבר לפני ההעלאה יש גרשיים כפולים? תפתח את הקובץ עם עורך טקסט - לא עם אקסל
נכון...
מה זה אמור להיות?
זה קובץ שאני מוציא מתוכנה
איך אני יכול לסדר את זה?
מה אני צריך לחליף שם?
@yossiz כתב בגרשיים נוספים לבד בשליחת קובץ מ JS לשרת:
ההשערה שלי שמדובר בקובץ CSV. הדרך לעשות escaping של גרשיים בערכים מוקפים בגרשיים הוא להכפיל את הגרשיים. (ע"ע)
אבל למה זה עם בעיות גם בשמירה ללא עיבוד?
@dovid כתב בגרשיים נוספים לבד בשליחת קובץ מ JS לשרת:
הארה דומה עולה לי למקרא המילים "הקוד הרלוונטי" - משמע יש עוד קוד אבל לכאורה הוא לא נוגע לעניין.
זה כל הפונקצייה של הייבוא קובץ
זה הקוד ב PHP שמקבל את הקובץ ושומר אותו
$fileTmpPath = $_FILES['file']['tmp_name'];
$fileContent = file_get_contents($fileTmpPath);
@dovid כתב בגרשיים נוספים לבד בשליחת קובץ מ JS לשרת:
מדובר בxls או xlsx, או בcsv?
CSV