wiki:technical:upsream
Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| wiki:technical:upsream [2022/03/27 20:46] – Diman | wiki:technical:upsream [2026/04/14 18:05] (текущий) – Diman | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| - | ====Upstream | + | ====Upstream |
| - | worker_processes | + | <code bash> |
| + | # | ||
| + | # install nginx stream module | ||
| + | |||
| + | apt install -y nginx libnginx-mod-stream | ||
| + | |||
| + | mkdir / | ||
| + | |||
| + | ## | ||
| + | # to nginx.conf add | ||
| + | |||
| + | include / | ||
| + | |||
| + | http { | ||
| + | ... | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | === " | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | worker_processes | ||
| error_log | error_log | ||
| # | # | ||
| - | |||
| #pid logs/ | #pid logs/ | ||
| - | |||
| events { | events { | ||
| worker_connections | worker_connections | ||
| } | } | ||
| - | |||
| - | |||
| - | |||
| http { | http { | ||
| upstream vpro { | upstream vpro { | ||
| - | # server 127.0.0.1: | ||
| - | # server 127.0.0.1: | ||
| - | # server 127.0.0.1: | ||
| | | ||
| + | | ||
| + | | ||
| } | } | ||
| - | |||
| - | |||
| server { | server { | ||
| listen 80; | listen 80; | ||
| Строка 32: | Строка 50: | ||
| } | } | ||
| } | } | ||
| - | |||
| | | ||
| listen 443 ssl; | listen 443 ssl; | ||
| server_name uplink-vpro.vps-server.ru; | server_name uplink-vpro.vps-server.ru; | ||
| - | |||
| - | # ssl_certificate | ||
| - | # ssl_certificate_key | ||
| - | # ssl_client_certificate / | ||
| - | # ssl_verify_client | ||
| - | |||
| ssl_certificate | ssl_certificate | ||
| ssl_certificate_key | ssl_certificate_key | ||
| - | |||
| location / { | location / { | ||
| proxy_pass https:// | proxy_pass https:// | ||
| Строка 51: | Строка 61: | ||
| } | } | ||
| } | } | ||
| - | |||
| } | } | ||
| + | </ | ||
wiki/technical/upsream.1648413991.txt.gz · Последнее изменение: — Diman
