Last active
February 24, 2016 08:38
-
-
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 )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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