Для начала необходимо обновить страницу в браузере, чтобы убедиться, что это не временная ошибка.
Если не помогло, в таком случае:
Пример работающих конфигов для работы Консолью службы RDP2:
nginx
worker_processes 4;
events { worker_connections 1024; }
http {
sendfile on;
client_max_body_size 1000m;
upstream app_server {
server localhost:5001;
}
upstream robotlogs {
server localhost:56748;
}
upstream rdpstream {
server orch:5102;
}
include mime.types;
include conf.d/*.conf;
server {
listen 44392 ssl;
ssl_certificate cert1.crt;
ssl_certificate_key cert1.rsa;
root html;
index index.html;
server_name _;
client_max_body_size 500m;
location / {
try_files $uri /index.html;
}
error_log C:/Primo/nginx-1.21.1/logs/my_error.log warn;
location ~* ^/api/robotlogs {
if ($request_method = POST ) {
proxy_pass http://robotlogs;
}
if ($request_method = GET ) {
proxy_pass http://app_server;
}
proxy_set_header Host $host;
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 https;
}
location /api/ {
client_max_body_size 500m;
proxy_pass http://app_server;
proxy_set_header Host $host;
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 https;
}
location /events {
proxy_pass http://app_server;
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;
}
location /rdpstream/ {
proxy_pass https://rdpstream;
proxy_set_header Host $host;
#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 https;
rewrite ^/rdpstream/(.*) /$1 break;
}
}
}
WebApi:
"RdpBaseUrl": "https://orch:44392/rdpstream",
"RdpBaseUrls": {}
RDP2:
"EnabledOrigins": [
"https://orch:44392"
],
"ConfigPasswordEncryptorAlgorithm": "AES",
"Orchestrator": {
"UserName": "rdpservice",
"Password": "JLWIyl1xZNDVVx8tcVllOg==",
"BaseUrl": "https://orch:44392"
},