chore [P-0]: сhore
This commit is contained in:
1 parent
d13d02fadb
commit
2e48e08b83
389 files changed
+17779
-11492
No files matched your search
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
-28
@@ -76,33 +76,5 @@ http {
|
||||
|
||||
}
|
||||
}
|
||||
# Второй сервер
|
||||
server {
|
||||
|
||||
listen ${NGINX_EXTERNAL_PORT};
|
||||
server_name docs.${HOST_NAME}; # Поддомен для документации
|
||||
set $docs documentation:${DOCS_EXTERNAL_PORT};
|
||||
resolver 127.0.0.11 ipv6=off valid=10s;
|
||||
|
||||
# Обработка всех запросов на поддомен
|
||||
location / {
|
||||
proxy_pass http://$docs; # Прокси на документацию
|
||||
|
||||
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;
|
||||
|
||||
# Настройки для WebSocket
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
error_page 502 = @fallback;
|
||||
}
|
||||
location @fallback {
|
||||
return 302 http://${HOST_NAME}; # Замените на URL альтернативного сайта
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Regular → Executable
File mode changed.
Reference in new issue
Block a user