Skip to content

Instantly share code, notes, and snippets.

@lucasp90
Last active August 29, 2018 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasp90/0a0949c063288890b562395b29f494e1 to your computer and use it in GitHub Desktop.
Save lucasp90/0a0949c063288890b562395b29f494e1 to your computer and use it in GitHub Desktop.
docker-compose based jekins using nginx
server {
listen 443 default ssl;
ssl_certificate /etc/ssl/your-certificate-crt.pem;
ssl_certificate_key /etc/ssl/your-certificate-key.pem;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
location / {
proxy_pass http://jenkinssvc:8080;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment