Skip to content

Commit

Permalink
прокс
Browse files Browse the repository at this point in the history
  • Loading branch information
best-tech committed Dec 10, 2020
1 parent e415c21 commit 26fe314
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ http {
location /<%= ENV['URL_PATH'] %> {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host <%= ENV['HEADER_HOST'] || 'aviasales.ru' %>;
proxy_set_header Host <%= ENV['HEADER_HOST']%>;
proxy_redirect off;
proxy_pass <%= ENV['PROXY_PASS'] || 'https://aviasales.ru/?marker=18479' %>;
proxy_pass <%= ENV['PROXY_PASS'] %>;
proxy_set_header Authorization "<%= ENV['AUTH_HAEDER'] %>";
proxy_connect_timeout 600;
}
}
}

0 comments on commit 26fe314

Please sign in to comment.