2023-07-18 08:28:21 +00:00
|
|
|
image:
|
2023-11-17 10:22:57 +00:00
|
|
|
repository: phalcode/gamevault-backend
|
2023-07-18 08:28:21 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2024-05-07 00:31:09 +00:00
|
|
|
tag: 12.1.0@sha256:bb9bbb7ed6b8776e5a0d540c8cb64a4c6941dde45d20f4e3d03cf847bd464f7c
|
2023-07-18 08:28:21 +00:00
|
|
|
securityContext:
|
|
|
|
container:
|
|
|
|
runAsNonRoot: false
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
protocol: http
|
|
|
|
port: 8080
|
2023-08-16 09:39:23 +00:00
|
|
|
targetPort: 8080
|
2023-08-19 09:03:55 +00:00
|
|
|
gamevault:
|
|
|
|
server:
|
2023-08-29 22:15:04 +00:00
|
|
|
admin_username: admin
|
2023-08-19 09:03:55 +00:00
|
|
|
admin_password: password
|
|
|
|
registration_disabled: false
|
|
|
|
account_activation_disabled: false
|
|
|
|
allowed_origins:
|
|
|
|
- "*"
|
|
|
|
log_level: info
|
|
|
|
games:
|
|
|
|
index_interval_in_minutes: 5
|
|
|
|
search_recursive: true
|
|
|
|
file_formats:
|
|
|
|
- ".7z"
|
|
|
|
images:
|
|
|
|
gc_keep_days: 30
|
|
|
|
gc_interval_minutes: 60
|
|
|
|
rawg:
|
|
|
|
api_url: https://api.rawg.io/api
|
|
|
|
api_cache_days: 7
|
|
|
|
api_key: ""
|
2023-07-18 08:28:21 +00:00
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
path: /api/v1/health
|
|
|
|
type: http
|
|
|
|
readiness:
|
|
|
|
path: /api/v1/health
|
|
|
|
type: http
|
|
|
|
startup:
|
|
|
|
path: /api/v1/health
|
|
|
|
type: http
|
|
|
|
env:
|
|
|
|
# manually set and change to /games so its easy for users to know where to place their game files.
|
2023-08-16 09:39:23 +00:00
|
|
|
VOLUMES_FILES: "{{.Values.persistence.games.mountPath }}"
|
|
|
|
VOLUMES_IMAGES: "{{.Values.persistence.images.mountPath }}"
|
|
|
|
VOLUMES_LOG: "{{.Values.persistence.logs.mountPath }}"
|
2023-07-18 08:28:21 +00:00
|
|
|
# DB
|
|
|
|
DB_SYSTEM: POSTGRESQL
|
|
|
|
DB_PORT: 5432
|
|
|
|
DB_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-urls
|
|
|
|
key: host
|
|
|
|
DB_DATABASE: "{{ .Values.cnpg.main.database }}"
|
|
|
|
DB_USERNAME: "{{ .Values.cnpg.main.user }}"
|
|
|
|
DB_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-user
|
|
|
|
key: password
|
|
|
|
# ADMIN
|
2023-08-29 22:15:04 +00:00
|
|
|
SERVER_ADMIN_USERNAME: "{{ .Values.gamevault.server.admin_username }}"
|
2023-08-19 09:03:55 +00:00
|
|
|
SERVER_ADMIN_PASSWORD: "{{ .Values.gamevault.server.admin_password }}"
|
|
|
|
SERVER_REGISTRATION_DISABLED: "{{ .Values.gamevault.server.registration_disabled }}"
|
|
|
|
SERVER_ACCOUNT_ACTIVATION_DISABLED: "{{ .Values.gamevault.server.account_activation_disabled }}"
|
2023-07-18 08:28:21 +00:00
|
|
|
# SERVER
|
2023-08-19 09:03:55 +00:00
|
|
|
SERVER_LOG_LEVEL: "{{ .Values.gamevault.server.log_level }}"
|
|
|
|
SERVER_CORS_ALLOWED_ORIGINS: '{{ join "," .Values.gamevault.server.allowed_origins }}'
|
2023-07-18 08:28:21 +00:00
|
|
|
# GAMES
|
2023-08-19 09:03:55 +00:00
|
|
|
GAMES_INDEX_INTERVAL_IN_MINUTES: "{{ .Values.gamevault.games.index_interval_in_minutes }}"
|
|
|
|
GAMES_SEARCH_RECURSIVE: "{{ .Values.gamevault.games.search_recursive }}"
|
|
|
|
GAMES_SUPPORTED_FILE_FORMATS: '{{ join "," .Values.gamevault.games.file_formats }}'
|
2023-07-18 08:28:21 +00:00
|
|
|
# IMAGES
|
2023-08-19 09:03:55 +00:00
|
|
|
IMAGE_GC_KEEP_DAYS: "{{ .Values.gamevault.images.gc_keep_days }}"
|
|
|
|
IMAGE_GC_INTERVAL_MINUTES: "{{ .Values.gamevault.images.gc_interval_minutes }}"
|
2023-07-18 08:28:21 +00:00
|
|
|
# RAWG
|
2023-08-19 09:03:55 +00:00
|
|
|
RAWG_API_URL: "{{ .Values.gamevault.rawg.api_url }}"
|
|
|
|
RAWG_API_CACHE_DAYS: "{{ .Values.gamevault.rawg.api_cache_days }}"
|
|
|
|
RAWG_API_KEY: "{{ .Values.gamevault.rawg.api_key }}"
|
2023-07-18 08:28:21 +00:00
|
|
|
persistence:
|
|
|
|
logs:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /logs
|
|
|
|
images:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /images
|
|
|
|
games:
|
|
|
|
enabled: true
|
|
|
|
mountPath: /games
|
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
user: gamevault
|
|
|
|
database: gamevault
|
|
|
|
portal:
|
|
|
|
open:
|
2023-07-19 13:29:42 +00:00
|
|
|
enabled: false
|