Skip to content

Instantly share code, notes, and snippets.

@jegade
Created January 9, 2017 15:06
Show Gist options
  • Save jegade/f010388c510116e8b5ac2a9ff4fdc52d to your computer and use it in GitHub Desktop.
Save jegade/f010388c510116e8b5ac2a9ff4fdc52d to your computer and use it in GitHub Desktop.
https://git.example.com {
tls email@example.com
log git.access.log {
rotate
}
proxy / gitlab:80 {
fail_timeout 300s
proxy_header Host {host}
proxy_header X-Real-IP {remote}
proxy_header X-Forwarded-Proto {scheme}
proxy_header X-Forwarded-Ssl on
}
}
https://hub.example.com:5005 {
tls email@example.com
log git.access.log {
rotate
}
proxy / registry:5000 {
fail_timeout 300s
proxy_header Host {host}
proxy_header X-Real-IP {remote}
proxy_header X-Forwarded-Proto {scheme}
proxy_header X-Forwarded-Ssl on
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment