Commit 18de73eb authored by Matthias Larisch's avatar Matthias Larisch

Configurable Sock-Server (chat push) URL

parent d9f4b7ce
Pipeline #4642923 passed with stage
in 2 minutes and 24 seconds
......@@ -29,6 +29,7 @@ define('SMTP_PASS','');
define('SMTP_PORT',25);
define('MEM_ENABLED', true);
define('SOCK_URL', 'http://chat:1338/');
define('REDIS_HOST', 'redis');
define('REDIS_PORT', 6379);
......
......@@ -12,3 +12,6 @@ if (file_exists($env_filename)) {
} else {
die('no config found for env ['.$FS_ENV.']');
}
if(!defined(SOCK_URL)) {
define(SOCK_URL, 'http://127.0.0.1:1338/');
}
......@@ -2973,7 +2973,7 @@ function sendSock($fsid,$app,$method,$options)
//$fp = fopen ('http://127.0.0.1:1338/?' . $query , 'r');
file_get_contents('http://127.0.0.1:1338/?' . $query);
file_get_contents(SOCK_URL . '?' . $query);
/*
if($fp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment