about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2016-09-21T00·27+0200
committerVincent Ambo <tazjin@gmail.com>2016-09-21T00·29+0200
commitef8846eb004377a4d7fe3f7d589e71035a8017dd (patch)
tree902e8f8b07c2a527d9dd1f820b5988cb7405bc49
parent7e12db2454ebadc5fb1f96590c58489b2b1ad9d5 (diff)
[nginx] Add gogs certificate
-rw-r--r--nginx/conf/http.conf4
-rw-r--r--nginx/nginx.yaml7
2 files changed, 10 insertions, 1 deletions
diff --git a/nginx/conf/http.conf b/nginx/conf/http.conf
index c8b7d3d8de00..d7995f54341b 100644
--- a/nginx/conf/http.conf
+++ b/nginx/conf/http.conf
@@ -26,6 +26,10 @@ server {
 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;
     }
diff --git a/nginx/nginx.yaml b/nginx/nginx.yaml
index 3d44e33ceb4e..01391492ef97 100644
--- a/nginx/nginx.yaml
+++ b/nginx/nginx.yaml
@@ -7,7 +7,7 @@ metadata:
     app: nginx
     spec: v4
 spec:
-  replicas: 1
+  replicas: 2
   template:
     metadata:
       labels:
@@ -21,6 +21,8 @@ spec:
               mountPath: /etc/nginx/ssl/tazj.in
             - name: www-tazj-in-tls
               mountPath: /etc/nginx/ssl/www.tazj.in
+            - name: git-tazj-in-tls
+              mountPath: /etc/nginx/ssl/git.tazj.in
             - name: nginx-dhparam
               mountPath: /etc/nginx/ssl/dhparam
             - name: nginx-config
@@ -46,6 +48,9 @@ spec:
         - name: www-tazj-in-tls
           secret:
             secretName: www-tazj-in-tls
+        - name: git-tazj-in-tls
+          secret:
+            secretName: git-tazj-in-tls
         - name: nginx-dhparam
           secret:
             secretName: nginx-dhparam