Я настраиваю среды удаленной разработки для своей группы разработчиков, чтобы они могли получить доступ к своему коду через браузер. Чтобы добиться того же, я установил контейнер сервера кода на свой сервер, который предоставляет порт 8080 для хост-машины.
Я обращаюсь к xyz.domain
для доступа к серверу кода на порту 80, который обратным проксированием проксируется на 8080 порт локально. Я могу получить доступ к начальной странице, на которой вводится пароль. Я также могу получить доступ к странице панели инструментов. Но когда я пытаюсь получить доступ к приложению vs code, появляется пустая страница.
Ниже приведены конфигурации, которые я использовал:
nginx .conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
server { # simple reverse-proxy
server_name xyz.domain;
access_log logs/xyz.access.log main;
location / {
proxy_max_temp_file_size 0;
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 $scheme;
proxy_pass http://127.0.0.1:8080/;
}
}
}
НЕТ Журналы ошибок
журналы доступа:
103.226.226.66 - - [06/May/2020:20:25:23 +0000] "GET / HTTP/1.1" 200 6653 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:25:24 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/register.js HTTP/1.1" 200 9464 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:25:24 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/loader.js HTTP/1.1" 200 33791 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:25:27 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/workbench.web.api.css HTTP/1.1" 200 301904 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:25:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/workbench.web.api.nls.js HTTP/1.1" 200 291361 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:25:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/src/browser/media/pwa-icon-384.png HTTP/1.1" 404 1638 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:25:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/src/browser/media/favicon.ico HTTP/1.1" 404 1638 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:25:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/serviceWorker.js HTTP/1.1" 200 1539 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:25 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/workbench.web.api.js HTTP/1.1" 200 6094639 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:26 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/code/browser/workbench/workbench.js HTTP/1.1" 200 6047 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:27 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/serviceWorker.js HTTP/1.1" 200 1539 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:27 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/common/uuid.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:27 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/common/uriIpc.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/parts/request/browser/request.js HTTP/1.1" 404 1743 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/platform/windows/common/windows.js HTTP/1.1" 404 1722 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/common/lifecycle.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/browser/browser.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/common/network.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/common/cancellation.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/common/resources.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/base/common/buffer.js HTTP/1.1" 404 1701 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:29 +0000] "GET /dashboard HTTP/1.1" 200 6511 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:29 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/serviceWorker.js HTTP/1.1" 200 1539 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:30 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/pages/app.js HTTP/1.1" 200 11063 "https://xyz.domain/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:30 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/pages/app.css HTTP/1.1" 200 2816 "https://xyz.domain/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:33 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/app.css.map HTTP/1.1" 404 1596 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:34 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/serviceWorker.js HTTP/1.1" 200 1539 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:44 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/workbench.web.api.js HTTP/1.1" 200 3505967 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:44 +0000] "POST /dashboard/spawn HTTP/1.1" 302 5 "https://xyz.domain/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:44 +0000] "GET / HTTP/1.1" 200 6647 "https://xyz.domain/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:26:45 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/serviceWorker.js HTTP/1.1" 200 1539 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:18 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/workbench.web.api.js HTTP/1.1" 200 6916578 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:21 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/node_modules/semver-umd/lib/semver-umd.js HTTP/1.1" 200 119739 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:22 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/serviceWorker.js HTTP/1.1" 200 1539 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:27 +0000] "GET /?type=Management&reconnectionToken=9943f676-dd2c-403c-a5b5-defaa55a8278&reconnection=false&skipWebSocketFrames=false HTTP/1.1" 200 6647 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:28 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/services/extensions/worker/extensionHostWorkerMain.js HTTP/1.1" 200 900 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:28 +0000] "GET /update HTTP/1.1" 200 71 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:29 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/dist/serviceWorker.js HTTP/1.1" 200 1539 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:29 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/services/extensions/worker/extensionHostWorker.js HTTP/1.1" 200 803171 "https://xyz.domain/static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/services/extensions/worker/extensionHostWorkerMain.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:30 +0000] "GET /?type=ExtensionHost&reconnectionToken=6e6c298f-226a-4538-b0b5-1993df056b4d&reconnection=false&skipWebSocketFrames=false HTTP/1.1" 200 6653 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:35 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/services/extensions/worker/extensionHostWorker.nls.js HTTP/1.1" 200 19781 "https://xyz.domain/static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/services/extensions/worker/extensionHostWorkerMain.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:41 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/node_modules/@coder/node-browser/out/client/client.js HTTP/1.1" 200 760705 "https://xyz.domain/static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/services/extensions/worker/extensionHostWorkerMain.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:27:48 +0000] "GET /static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/node_modules/@coder/requirefs/out/requirefs.js HTTP/1.1" 200 24254 "https://xyz.domain/static/19ff74650b1b001d33d5c0207e311dd7c0ff4d2f/lib/vscode/out/vs/workbench/services/extensions/worker/extensionHostWorkerMain.js" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:32:31 +0000] "GET /update HTTP/1.1" 200 71 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:37:33 +0000] "GET /update HTTP/1.1" 200 71 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:42:36 +0000] "GET /update HTTP/1.1" 200 71 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:47:38 +0000] "GET /update HTTP/1.1" 200 71 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
103.226.226.66 - - [06/May/2020:20:52:40 +0000] "GET /update HTTP/1.1" 200 71 "https://xyz.domain/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:76.0) Gecko/20100101 Firefox/76.0" "-"
и следующие журналы контейнеров (код-сервер):
(node:20) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [ChildProcess]. Use emitter.setMaxListeners() to increase limit
(node:20) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [ChildProcess]. Use emitter.setMaxListeners() to increase limit