[nginx] Use SAN certificates

Use SAN certificates from k8s LE controller 1.3
This commit is contained in:
Vincent Ambo 2016-09-26 01:23:29 +02:00
parent a02148d832
commit e514f9ecff
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
4 changed files with 6 additions and 20 deletions

View file

@ -8,6 +8,7 @@ server {
# Simple IP echo thing
server {
listen 80;
listen 443 ssl http2;
server_name ip.tazj.in;
access_log off;
add_header "Content-Type" "text/plain";
@ -27,9 +28,6 @@ server {
listen 443 ssl http2;
server_name git.tazj.in;
ssl_certificate /etc/nginx/ssl/git.tazj.in/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/git.tazj.in/key.pem;
location / {
proxy_pass http://gogs-priv.default.svc.cluster.local:3000;
}
@ -40,9 +38,6 @@ server {
listen 443 ssl http2;
server_name tazj.in;
ssl_certificate /etc/nginx/ssl/tazj.in/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/tazj.in/key.pem;
location / {
return 301 https://www.tazj.in$request_uri;
}