Skip to content

Commit

Permalink
Merged hostname forwarding for fabric (pull request elastic#163)
Browse files Browse the repository at this point in the history
same as https://bitbucket.org/engageli/devops/pull-requests/154 but for fabric

Approved-by: Can Yildiz
  • Loading branch information
namcha committed Jul 26, 2021
1 parent b85467d commit 593829e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fabfile.py
Expand Up @@ -37,12 +37,14 @@

NGINX_TEMPLATE = """# Engageli backend
location /api/{user} {{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 512M;
proxy_pass http://localhost:{port};
}}
location /api/{user}-mm {{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 512M;
Expand Down

0 comments on commit 593829e

Please sign in to comment.