Додані повідомлення та перепрацьована структура застосунку та api
This commit is contained in:
33
README.md
33
README.md
@@ -238,6 +238,39 @@ server {
|
||||
}
|
||||
```
|
||||
|
||||
### Приклад конфігурації для балонсування серверів
|
||||
|
||||
```nginx
|
||||
upstream backend {
|
||||
server 5.58.145.96 max_fails=3 fail_timeout=10s;
|
||||
server 95.47.167.120 max_fails=3 fail_timeout=10s;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name sheep-service.com www.sheep-service.com;
|
||||
|
||||
location / {
|
||||
proxy_pass http://backend;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
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_connect_timeout 5s;
|
||||
proxy_read_timeout 30s;
|
||||
proxy_send_timeout 30s;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Активація сайту
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user