Skip to content

Instantly share code, notes, and snippets.

@shajiquan
Last active February 24, 2016 08:38
Show Gist options
  • Save shajiquan/434ff6fe57c20bd74116 to your computer and use it in GitHub Desktop.
Save shajiquan/434ff6fe57c20bd74116 to your computer and use it in GitHub Desktop.
Nginx reverse config for hex.pm( A package manager for the Erlang/Elixir ecosystem )
upstream hexpm {
server s3.amazonaws.com:443;
}
server {
listen 80;
server_name your-domain.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header Host s3.amazonaws.com;
proxy_pass https://hexpm/s3.hex.pm$request_uri;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment