mekici Can you share your proxy settings ? Mine as as below
In the top of the site nginx.conf
file
map $http_upgrade $type {
default "web";
websocket "ws";
}
Then in the server
block
location @ws {
proxy_pass http://127.0.0.1:2083;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
# Allow the use of websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
Then finally, in the Flarum issued .nginx.conf
file, changed
location / {
try_files $uri $uri/ /index.php?$query_string;
}
To
location @web {
try_files $uri $uri/ /index.php?$query_string;
}
Restarted NGINX. All that does it leave me with a site where rewrite no longer works, and the websocket doesn't work either. I just end up with this
Obviously, the ports are wrong here, so I changed settings.php
as below
$defaults = [
'server-host' => '0.0.0.0',
'server-port' => 2083,
'js-client-host' => $host,
'js-client-port' => 2083,
'js-client-secure' => $secure,
'php-client-host' => $host,
'php-client-port' => 2083,
'php-client-secure' => $secure,
'max-connections' => 1000,
'app-key' => md5($host),
'app-secret' => md5($this->config->offsetGet('database.password')),
];
Still doesn't work 🙁