Created
February 19, 2020 18:27
-
-
Save bkreider/977ed43f5e483f07252963f25cfae158 to your computer and use it in GitHub Desktop.
Resty proxy domain socket to conda
This file contains hidden or 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
server { | |
listen unix:/tmp/conda.sock; | |
root /Users/bkreider/mine/resty/html; | |
location / { | |
# conda | |
proxy_pass https://repo.anaconda.com/; | |
proxy_pass_header Server; | |
proxy_pass_header X-Scheme; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
} | |
} |
This file contains hidden or 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
socat TCP4-LISTEN:9001,bind=127.0.0.1,fork UNIX:/tmp/conda.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment