Created
October 15, 2014 01:58
-
-
Save dobestan/953b146f324f1a1e46fa to your computer and use it in GitHub Desktop.
nginx.conf for docker registry
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server { | |
listen 80; | |
server_name localhost; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Authorization ""; | |
client_max_body_size 0; | |
chunked_transfer_encoding on; | |
location / { | |
proxy_pass http://docker-registry:5000; | |
proxy_set_header Host $host; | |
proxy_read_timeout 900; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment