Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the ingress configuration to have a SSL proxy for concourse #93

Merged
merged 1 commit into from
Nov 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tpl/gcp/deployments/ingress/ingress.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ instance_groups:
<%- end -%>
}
server {
listen 443;
listen 443 ssl http2;
server_name <%= hostname %>;
ssl_certificate_key /var/vcap/jobs/nginx/etc/<%= hostname %>/key.pem;
ssl_certificate /var/vcap/jobs/nginx/etc/<%= hostname %>/cert.pem;
Expand All @@ -63,10 +63,14 @@ instance_groups:
error_log /var/vcap/sys/log/nginx/<%= hostname %>-error.log;

location / {
proxy_http_version 1.1;

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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

proxy_pass <%= config[:protocol] %>://<%= upstream_name%>;
proxy_read_timeout 90;
Expand Down