2022-09-03 01:47:19 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: hangar-backend
|
|
|
|
labels:
|
|
|
|
{{- include "hangar.labels" . | nindent 4 }}
|
|
|
|
type: Opaque
|
|
|
|
stringData:
|
|
|
|
application.yaml: |
|
|
|
|
spring:
|
|
|
|
application:
|
|
|
|
name: hangar-backend
|
|
|
|
datasource:
|
|
|
|
url: "jdbc:postgresql://{{ .Values.backend.config.postgresql.hostname }}:{{ .Values.backend.config.postgresql.port }}/{{ .Values.backend.config.postgresql.database }}{{ .Values.backend.config.postgresql.options }}"
|
|
|
|
username: "{{ .Values.backend.config.postgresql.username }}"
|
|
|
|
password: "{{ .Values.backend.config.postgresql.password }}"
|
|
|
|
server:
|
|
|
|
port: 8080
|
|
|
|
management:
|
|
|
|
server:
|
|
|
|
port: 8081
|
|
|
|
security:
|
|
|
|
enabled: false
|
|
|
|
endpoints:
|
|
|
|
enabled-by-default: true
|
|
|
|
endpoint:
|
|
|
|
health:
|
|
|
|
enabled: true
|
|
|
|
probes:
|
|
|
|
enabled: true
|
|
|
|
health:
|
|
|
|
livenessState:
|
|
|
|
enabled: true
|
|
|
|
readinessState:
|
|
|
|
enabled: true
|
|
|
|
fake-user:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
hangar:
|
|
|
|
dev: false
|
2022-09-04 00:34:19 +08:00
|
|
|
base-url: "{{ .Values.base.host }}"
|
2022-09-03 01:47:19 +08:00
|
|
|
|
|
|
|
announcements:
|
|
|
|
-
|
2022-12-04 18:23:50 +08:00
|
|
|
text: "{{ .Values.backend.config.announcement }}"
|
2022-09-03 01:47:19 +08:00
|
|
|
color: "#ff544b"
|
|
|
|
|
|
|
|
sso:
|
2022-09-04 00:34:19 +08:00
|
|
|
auth-url: "{{ .Values.base.authHost }}"
|
|
|
|
oauth-url: "{{ .Values.base.authHost }}/hydra"
|
2022-09-12 01:37:16 +08:00
|
|
|
backend-oauth-url: "{{ .Values.backend.config.backendOauthUrl }}"
|
2022-09-04 00:34:19 +08:00
|
|
|
client-id: "{{ .Values.base.sso.clientId }}"
|
|
|
|
api-key: "{{ .Values.base.sso.apiKey }}"
|
2022-12-21 22:44:47 +08:00
|
|
|
kratos-api-key: "{{ .Values.backend.config.kratosApiKey }}"
|
2022-09-03 01:47:19 +08:00
|
|
|
|
|
|
|
security:
|
|
|
|
api:
|
2022-11-09 04:04:54 +08:00
|
|
|
url: "{{ .Values.backend.config.backendAuthHost }}"
|
2022-09-04 00:34:19 +08:00
|
|
|
avatar-url: "{{ .Values.base.authHost }}/avatar/%s"
|
|
|
|
token-secret: "{{ .Values.backend.config.tokenSecret }}"
|
|
|
|
image-proxy-url: "{{ .Values.base.authHost }}/image/%s"
|
2022-09-03 01:47:19 +08:00
|
|
|
|
|
|
|
storage:
|
|
|
|
plugin-upload-dir: "/hangar/uploads"
|
2022-09-04 00:34:19 +08:00
|
|
|
type: "{{ .Values.backend.config.storage.type }}"
|
|
|
|
access-key: "{{ .Values.backend.config.storage.accessKey }}"
|
|
|
|
secret-key: "{{ .Values.backend.config.storage.secretKey }}"
|
|
|
|
bucket: "{{ .Values.backend.config.storage.bucket }}"
|
|
|
|
object-storage-endpoint: "{{ .Values.backend.config.storage.objectStorageEndpoint }}"
|
2022-10-03 22:22:59 +08:00
|
|
|
cdnEndpoint: "{{ .Values.backend.config.storage.cdnEndpoint }}"
|
2022-10-20 01:57:57 +08:00
|
|
|
cdnIncludeBucket: "{{ .Values.backend.config.storage.cdnIncludeBucket }}"
|
2022-09-03 01:47:19 +08:00
|
|
|
|
|
|
|
logging:
|
|
|
|
level:
|
|
|
|
root: INFO
|
|
|
|
org.springframework: INFO
|