Skip to content

Commit

Permalink
Добавлена настройка заговлока Host
Browse files Browse the repository at this point in the history
  • Loading branch information
best-tech committed Jun 8, 2020
1 parent 0beebd5 commit 2daecf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"description": "Путь перенаправления",
"value": "https://aviasales.ru/?marker=18479",
"required": true
},
"HEADER_HOST": {
"description": "Заголовок Host",
"value": "aviasales.ru",
"required": true
}
},
"buildpacks": [
Expand Down
2 changes: 1 addition & 1 deletion config/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ http {

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Host <%= ENV['HEADER_HOST'] || 'aviasales.ru' %>;
proxy_redirect off;
proxy_pass <%= ENV['PROXY_PASS'] || 'https://aviasales.ru/?marker=18479' %>;
}
Expand Down

0 comments on commit 2daecf0

Please sign in to comment.