linux:reverseproxy:min
Это старая версия документа!
Установка angie
apt-get update apt-get install -y ca-certificates curl curl -o /etc/apt/trusted.gpg.d/angie-signing.gpg https://angie.software/keys/angie-signing.gpg echo "deb https://download.angie.software/angie/$(. /etc/os-release && echo "$ID/$VERSION_ID $VERSION_CODENAME") main" |tee /etc/apt/sources.list.d/angie.list > /dev/null apt-get update apt-get install -y angie
Настройка
Конфиги хранятся по пути: /etc/angie/http.d/
Чтобы конфиги подтягивались, они должны иметь вид same-site.conf
Название можно использовать любое, но для удобства лучше приводить к виду cool.same-site.ru.conf
Пример конфига:
server { listen 443; server_name cool.same-site.ru; status_zone cool; location / { proxy_pass http://127.0.10.2; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_request_buffering off; proxy_buffering off; client_max_body_size 0; proxy_max_temp_file_size 0; proxy_read_timeout 1200s; } }
linux/reverseproxy/min.1740084841.txt.gz · Последнее изменение: 2025/02/20 20:54 — admin