Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more headers to Nginx proxy config #101

Open
romkey opened this issue May 3, 2019 · 0 comments
Open

Add more headers to Nginx proxy config #101

romkey opened this issue May 3, 2019 · 0 comments
Assignees
Labels
ansible bug Something isn't working rails security

Comments

@romkey
Copy link
Collaborator

romkey commented May 3, 2019

Needs more headers in order to make SSL work right

 location @puma_nginx.conf {
    proxy_redirect off;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;
    proxy_set_header Connection "Upgrade";
    proxy_set_header X-Forwarded-Proto http;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Ssl on; # Optional
    proxy_set_header X-Forwarded-Port $server_port;
    proxy_set_header X-Forwarded-Host $host;

    proxy_pass http://puma_nginx.conf;
    # limit_req zone=one;
    access_log /home/homebus/HomeBus/shared/log/nginx.access.log;
    error_log /home/homebus/HomeBus/shared/log/nginx.error.log;
  }
@romkey romkey added bug Something isn't working ansible rails security labels May 3, 2019
@romkey romkey self-assigned this May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible bug Something isn't working rails security
Projects
None yet
Development

No branches or pull requests

1 participant