Skip to content

Commit 19c9ab7

Browse files
committed
feat: add chart for divi-hub to serve its public key
1 parent c77616b commit 19c9ab7

File tree

7 files changed

+82
-0
lines changed

7 files changed

+82
-0
lines changed

charts/hub-server/.helmignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*~
18+
# Various IDEs
19+
.project
20+
.idea/
21+
*.tmproj

charts/hub-server/Chart.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
description: Divi Hub Server
3+
icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png
4+
maintainers:
5+
6+
name: Elegant Themes
7+
name: hub-server
8+
version: 1.0.0

charts/hub-server/app-readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Divi Hub Server

charts/hub-server/questions.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
questions:
2+
# - variable: s3_bucket_name
3+
# label: S3 Bucket Name
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Divi Hub Service
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: hub-server
6+
namespace: dh-app
7+
spec:
8+
selector:
9+
app: hub-server
10+
ports:
11+
- port: 9000
12+
targetPort: 9000
13+
name: fastcgi
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: hub-server
5+
namespace: dh-app
6+
annotations:
7+
cert-manager.io/cluster-issuer: letsencrypt
8+
kubernetes.io/ingress.class: nginx
9+
nginx.ingress.kubernetes.io/backend-protocol: FCGI
10+
nginx.ingress.kubernetes.io/enable-cors: "true"
11+
nginx.ingress.kubernetes.io/fastcgi-index: index.php
12+
nginx.ingress.kubernetes.io/use-regex: "false"
13+
nginx.ingress.kubernetes.io/enable-rewrite-log: "false"
14+
nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
15+
nginx.ingress.kubernetes.io/configuration-snippet: |
16+
more_set_headers 'Content-Type: text/plain';
17+
more_set_headers 'X-Robots-Tag: noindex, nofollow';
18+
return 200 {{ .Values.PUBLIC_KEY | squote }};
19+
spec:
20+
tls:
21+
- hosts:
22+
- {{ .Values.VIRTUAL_HOST }}
23+
secretName: hub-server-tls
24+
rules:
25+
- host: {{ .Values.VIRTUAL_HOST }}
26+
http:
27+
paths:
28+
- path: /public-key
29+
pathType: ImplementationSpecific
30+
backend:
31+
service:
32+
name: hub-server
33+
port:
34+
name: fastcgi

charts/hub-server/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PUBLIC_KEY:
2+
VIRTUAL_HOST:

0 commit comments

Comments
 (0)