Commit 45df9d36 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Added missing Nginx template

parent e5273928
# Based on
upstream jenkins {
server fail_timeout=0;
server {
listen 80;
server_name {{ inventory_hostname }};
return 301 https://$host$request_uri;
server {
listen 443 ssl;
server_name {{ inventory_hostname }};
ssl_certificate /etc/letsencrypt/live/{{ inventory_hostname }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ inventory_hostname }}/privkey.pem;
location / {
proxy_set_header Host $host:$server_port;
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;
proxy_redirect http:// https://;
proxy_pass http://jenkins;
# Required for new HTTP-based CLI
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_buffering off; # Required for HTTP-based CLI to work over SSL
# workaround for
add_header 'X-SSH-Endpoint' '{{ inventory_hostname }}:50022' always;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment