Работа над контейнером docker
Изменения в конфигах nginx Добавил привязку сервисов к 1 адресу
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
user application application;
|
||||
worker_processes auto;
|
||||
worker_rlimit_nofile 65535;
|
||||
|
||||
@@ -13,7 +14,13 @@ events {
|
||||
|
||||
http {
|
||||
limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
|
||||
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=10r/s;
|
||||
limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=50r/s;
|
||||
|
||||
# Для проксирования WebSocket (Reverb) через тот же домен/порт.
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
@@ -43,8 +50,8 @@ http {
|
||||
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss
|
||||
application/atom+xml image/svg+xml;
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/www/html/storage/logs/nginx/access.log;
|
||||
error_log /var/www/html/storage/logs/nginx/error.log;
|
||||
|
||||
limit_req_status 429;
|
||||
limit_conn_status 429;
|
||||
|
||||
Reference in New Issue
Block a user