Hangar/chart/templates/secret-hangar-backend.yaml

111 lines
3.9 KiB
YAML
Raw Normal View History

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
2023-01-07 23:38:59 +08:00
tracing:
2023-04-23 05:47:56 +08:00
enabled: {{ .Values.backend.config.tracing }}
hangar:
dev: false
2022-09-04 00:34:19 +08:00
base-url: "{{ .Values.base.host }}"
allow-indexing: "{{ .Values.base.allowIndexing }}"
disable-jgroups: "false"
announcements:
-
text: "{{ .Values.backend.config.announcement }}"
2023-08-24 22:38:10 +08:00
color: "{{ .Values.backend.config.color }}"
security:
2022-09-04 00:34:19 +08:00
token-secret: "{{ .Values.backend.config.tokenSecret }}"
2023-04-08 19:54:32 +08:00
rp-id: "{{ .Values.backend.config.rpId }}"
2023-12-22 02:01:52 +08:00
o-auth-enabled: {{ .Values.backend.config.oauthEnabled }}
2023-12-16 17:52:26 +08:00
o-auth-providers:
- name: "github"
mode: "github"
client-id: "{{ .Values.backend.config.githubClientId }}"
client-secret: "{{ .Values.backend.config.githubClientSecret }}"
scopes:
- "user:email"
unlink-link: "https://github.com/settings/connections/applications/:id"
2023-12-16 17:52:26 +08:00
- name: "microsoft"
mode: "oidc"
client-id: "{{ .Values.backend.config.microsoftClientId }}"
client-secret: "{{ .Values.backend.config.microsoftClientSecret }}"
scopes:
- "openid"
- "email"
- "profile"
well-known: "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration"
unlink-link: "https://account.live.com/consent/Manage"
2023-12-16 17:52:26 +08:00
- name: "google"
mode: "oidc"
client-id: "{{ .Values.backend.config.googleClientId }}"
client-secret: "{{ .Values.backend.config.googleClientSecret }}"
scopes:
- "openid"
- "email"
- "profile"
well-known: "https://accounts.google.com/.well-known/openid-configuration"
unlink-link: "https://myaccount.google.com/connections"
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 }}"
cdnEndpoint: "{{ .Values.backend.config.storage.cdnEndpoint }}"
2022-10-20 01:57:57 +08:00
cdnIncludeBucket: "{{ .Values.backend.config.storage.cdnIncludeBucket }}"
2023-03-31 04:29:23 +08:00
mail:
from: "{{ .Values.backend.config.mail.from }}"
user: "{{ .Values.backend.config.mail.user }}"
pass: "{{ .Values.backend.config.mail.pass }}"
host: "{{ .Values.backend.config.mail.host }}"
port: "{{ .Values.backend.config.mail.port }}"
dev: false
2023-04-23 05:47:56 +08:00
sentry:
dsn: "{{ .Values.backend.config.sentry.dsn }}"
environment: "{{ .Values.backend.config.sentry.environment }}"
2023-04-27 19:26:01 +08:00
traces-sample-rate: "{{ .Values.backend.config.sentry.tracesSampleRate }}"
instrumenter: "otel"
2023-03-31 04:29:23 +08:00
logging:
level:
root: INFO
org.springframework: INFO