Last active
August 29, 2018 19:14
-
-
Save lucasp90/0a0949c063288890b562395b29f494e1 to your computer and use it in GitHub Desktop.
docker-compose based jekins using nginx
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 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