app.use((req, res, next) => {
res.append('Access-Control-Allow-Origin', ['*']);
res.append('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
res.append('Access-Control-Allow-Headers', 'Content-Type');
next();
});
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream websocket {
server localhost:8831;
}
server {
listen 443;
location /socket {
proxy_pass http://localhost:8831;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
}
}
server {
listen 443 default_server;
listen [::]:443 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name syn-q.ru;
location /socket {
proxy_pass http://localhost:8831;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.22. in W:\domains\first_project\vendor\composer\platform_check.php on line 24
Illuminate\Database\QueryException
SQLSTATE[08006] [7] : "root" ( ) (SQL: select * from information_schema.tables where table_catalog = task and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')
at C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
1 C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("SQLSTATE[08006] [7] : "root" ( )")
2 C:\Program Files\OSPanel\domains\first_project\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct("pgsql:host=127.0.0.1;dbname='task';port=5432;sslmode=prefer", "root", Object(SensitiveParameterValue), [])
DB_CONNECTION=pgsql
DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=task
DB_USERNAME=postgres
DB_PASSWORD=пароль указан