Skip to content

Instantly share code, notes, and snippets.

@dobestan
Created October 15, 2014 01:58
Show Gist options
  • Save dobestan/953b146f324f1a1e46fa to your computer and use it in GitHub Desktop.
Save dobestan/953b146f324f1a1e46fa to your computer and use it in GitHub Desktop.
nginx.conf for docker registry
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