Spaces:
Paused
Paused
Upload 2 files
Browse filesFiles changed (2)
- entrypoint.sh+14-2
- nginx.conf+3-3
12 unmodified lines1314151617185 unmodified lines242526272829303112 unmodified linesecho "Пароль root установлен."fiDB_DIR="/var/lib/postgresql/14/main"if [ ! -f "$DB_DIR/postgresql.conf" ]; then5 unmodified linesecho "listen_addresses = '*'" >> $DB_DIR/postgresql.conffi# SSH требует ключи хоста. Если их нет - он молчит.ssh-keygen -Amkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresqlmkdir -p /var/run/sshd && chmod 0755 /var/run/sshd12 unmodified lines131415161718192021222324252627282930315 unmodified lines3738394041424312 unmodified linesecho "Пароль root установлен."fi# SSH требует ключи хоста. Если их нет - он молчит.ssh-keygen -A# Вывод диагностики в логи HFecho "--- ДИАГНОСТИКА ПОРТОВ ---"ip addrss -tulpnecho "--- ПРОВЕРКА КОНФИГА SSH ---"ls -la /etc/ssh/ssh_host_*grep "Port" /etc/ssh/sshd_configgrep "PermitRootLogin" /etc/ssh/sshd_configDB_DIR="/var/lib/postgresql/14/main"if [ ! -f "$DB_DIR/postgresql.conf" ]; then5 unmodified linesecho "listen_addresses = '*'" >> $DB_DIR/postgresql.conffimkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresqlmkdir -p /var/run/sshd && chmod 0755 /var/run/sshd
7 unmodified lines891011121314151617181920217 unmodified linestry_files $uri $uri/ /index.html;}location /ubu/ {proxy_pass http://127.0.0.1:8050/;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header Host $host;# Критически важно для SSH через Chisel:proxy_buffering off;proxy_request_buffering off;proxy_read_timeout 86400s;7 unmodified lines891011121314151617181920217 unmodified linestry_files $uri $uri/ /index.html;}location /ubu/ {proxy_pass http://127.0.0.1:8050/;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header Host $host;# ЭТО ВЫКЛЮЧАЕТ ЗАВИСАНИЕ:proxy_buffering off;proxy_request_buffering off;proxy_read_timeout 86400s;
entrypoint.sh+14-2
nginx.conf+3-3