[nginx] Add gogs certificate
This commit is contained in:
parent
7e12db2454
commit
ef8846eb00
2 changed files with 10 additions and 1 deletions
|
@ -26,6 +26,10 @@ server {
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name git.tazj.in;
|
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 / {
|
location / {
|
||||||
proxy_pass http://gogs-priv.default.svc.cluster.local:3000;
|
proxy_pass http://gogs-priv.default.svc.cluster.local:3000;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ metadata:
|
||||||
app: nginx
|
app: nginx
|
||||||
spec: v4
|
spec: v4
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -21,6 +21,8 @@ spec:
|
||||||
mountPath: /etc/nginx/ssl/tazj.in
|
mountPath: /etc/nginx/ssl/tazj.in
|
||||||
- name: www-tazj-in-tls
|
- name: www-tazj-in-tls
|
||||||
mountPath: /etc/nginx/ssl/www.tazj.in
|
mountPath: /etc/nginx/ssl/www.tazj.in
|
||||||
|
- name: git-tazj-in-tls
|
||||||
|
mountPath: /etc/nginx/ssl/git.tazj.in
|
||||||
- name: nginx-dhparam
|
- name: nginx-dhparam
|
||||||
mountPath: /etc/nginx/ssl/dhparam
|
mountPath: /etc/nginx/ssl/dhparam
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
|
@ -46,6 +48,9 @@ spec:
|
||||||
- name: www-tazj-in-tls
|
- name: www-tazj-in-tls
|
||||||
secret:
|
secret:
|
||||||
secretName: www-tazj-in-tls
|
secretName: www-tazj-in-tls
|
||||||
|
- name: git-tazj-in-tls
|
||||||
|
secret:
|
||||||
|
secretName: git-tazj-in-tls
|
||||||
- name: nginx-dhparam
|
- name: nginx-dhparam
|
||||||
secret:
|
secret:
|
||||||
secretName: nginx-dhparam
|
secretName: nginx-dhparam
|
||||||
|
|
Loading…
Reference in a new issue