feat(gamevault-backend) add gamevault-backend (#10543)
**Description** the self-hosted gaming platform for alternatively obtained games. ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [X] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [X] ⚖️ My code follows the style guidelines of this project - [X] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [X] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [X] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._
This commit is contained in:
parent
3b46709de0
commit
cd3a5560de
|
@ -0,0 +1,30 @@
|
|||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
# OWNERS file for Kubernetes
|
||||
OWNERS
|
||||
# helm-docs templates
|
||||
*.gotmpl
|
||||
# docs folder
|
||||
/docs
|
||||
# icon
|
||||
icon.png
|
|
@ -0,0 +1 @@
|
|||
# Changelog
|
|
@ -0,0 +1,28 @@
|
|||
apiVersion: v2
|
||||
appVersion: "2.0.0"
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://library-charts.truecharts.org
|
||||
version: 12.14.6
|
||||
deprecated: false
|
||||
description: the self-hosted gaming platform for alternatively obtained games.
|
||||
home: https://truecharts.org/charts/stable/gamevault-backend
|
||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/gamevault-backend.png
|
||||
keywords:
|
||||
- gamevault-backend
|
||||
- games
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
maintainers:
|
||||
- email: info@truecharts.org
|
||||
name: TrueCharts
|
||||
url: https://truecharts.org
|
||||
name: gamevault-backend
|
||||
sources:
|
||||
- https://github.com/truecharts/charts/tree/master/charts/stable/gamevault-backend
|
||||
- https://github.com/Phalcode/gamevault-backend
|
||||
type: application
|
||||
version: 0.0.1
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- games
|
||||
truecharts.org/SCALE-support: "true"
|
|
@ -0,0 +1 @@
|
|||
# README
|
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
|
@ -0,0 +1,229 @@
|
|||
# Include{groups}
|
||||
portals:
|
||||
open:
|
||||
# Include{portalLink}
|
||||
questions:
|
||||
# Include{global}
|
||||
# Include{workload}
|
||||
# Include{workloadDeployment}
|
||||
|
||||
# Include{replicas1}
|
||||
# Include{podSpec}
|
||||
# Include{containerMain}
|
||||
|
||||
- variable: env
|
||||
label: Image Environment
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: SERVER_ADMIN_USERNAME
|
||||
label: "Server Admin User"
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: ""
|
||||
- variable: SERVER_ADMIN_PASSWORD
|
||||
label: "Server Admin Password"
|
||||
schema:
|
||||
type: string
|
||||
private: true
|
||||
required: true
|
||||
default: ""
|
||||
- variable: server
|
||||
label: Show Server Settings
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: SERVER_REGISTRATION_DISABLED
|
||||
label: "Server Registration Disabled"
|
||||
description: "If registration is enabled or not."
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: SERVER_ACCOUNT_ACTIVATION_DISABLED
|
||||
label: "Server Account Activation Disabled"
|
||||
description: "If accounts need to be activated by an admin before using them."
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: SERVER_CORS_ALLOWED_ORIGINS
|
||||
label: "Server Cors Allowed Origin"
|
||||
description: "A comma-separated list of Allowed CORS origins for the server."
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: "*"
|
||||
- variable: SERVER_LOG_LEVEL
|
||||
label: "Server Log Level"
|
||||
description: "The log level of the server."
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: "info"
|
||||
enum:
|
||||
- value: "debug"
|
||||
description: "Debug"
|
||||
- value: "info"
|
||||
description: "Info"
|
||||
- value: "warn"
|
||||
description: "Warn"
|
||||
- value: "error"
|
||||
description: "Error"
|
||||
- value: "fatal"
|
||||
description: "Fatal"
|
||||
- variable: games_images
|
||||
label: Show Games and Images Settings
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: GAMES_INDEX_INTERVAL_IN_MINUTES
|
||||
label: "Games Index Interval In Minutes"
|
||||
description: "The index interval in minutes. Determines how often the server should index the list of games."
|
||||
schema:
|
||||
type: int
|
||||
default: 5
|
||||
min: 1
|
||||
- variable: IMAGE_GC_KEEP_DAYS
|
||||
label: "Image GC Keep Days"
|
||||
description: "The number of days to keep unused images. After this period, images that have not been accessed are deleted."
|
||||
schema:
|
||||
type: int
|
||||
default: 30
|
||||
min: 1
|
||||
- variable: IMAGE_GC_INTERVAL_MINUTES
|
||||
label: "Image GC Interval Minutes"
|
||||
description: "How often to run the image garbage collector, in minutes."
|
||||
schema:
|
||||
type: int
|
||||
default: 60
|
||||
min: 1
|
||||
- variable: rawg
|
||||
label: Show RAWG Server Settings
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: RAWG_API_URL
|
||||
label: RAWG API Url
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: https://api.rawg.io/api
|
||||
- variable: RAWG_API_CACHE_DAYS
|
||||
label: RAWG API Cache Days
|
||||
schema:
|
||||
type: int
|
||||
default: 7
|
||||
min: 1
|
||||
- variable: RAWG_API_KEY
|
||||
label: RAWG API Key
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
# Include{containerBasic}
|
||||
# Include{containerAdvanced}
|
||||
|
||||
# Include{containerConfig}
|
||||
# Include{podOptions}
|
||||
# Include{serviceRoot}
|
||||
- variable: main
|
||||
label: Main Service
|
||||
description: The Primary service on which the healthcheck runs, often the webUI
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{serviceSelectorLoadBalancer}
|
||||
# Include{serviceSelectorExtras}
|
||||
- variable: main
|
||||
label: Main Service Port Configuration
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: port
|
||||
label: Port
|
||||
description: This port exposes the container port on the service
|
||||
schema:
|
||||
type: int
|
||||
default: 8080
|
||||
required: true
|
||||
# Include{serviceExpertRoot}
|
||||
# Include{serviceExpert}
|
||||
# Include{serviceList}
|
||||
# Include{persistenceRoot}
|
||||
- variable: logs
|
||||
label: "App Logs Storage"
|
||||
description: "Stores the Application Logs."
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{persistenceBasic}
|
||||
- variable: images
|
||||
label: "App Images Storage"
|
||||
description: "Stores the Application Images."
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{persistenceBasic}
|
||||
- variable: games
|
||||
label: "App Games Storage"
|
||||
description: "Stores the Application Games."
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{persistenceBasic}
|
||||
# Include{persistenceList}
|
||||
# Include{ingressRoot}
|
||||
- variable: main
|
||||
label: "Main Ingress"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{ingressDefault}
|
||||
# Include{ingressTLS}
|
||||
# Include{ingressTraefik}
|
||||
# Include{ingressAdvanced}
|
||||
# Include{ingressList}
|
||||
# Include{securityContextRoot}
|
||||
|
||||
- variable: runAsUser
|
||||
label: "runAsUser"
|
||||
description: "The UserID of the user running the application"
|
||||
schema:
|
||||
type: int
|
||||
default: 0
|
||||
- variable: runAsGroup
|
||||
label: "runAsGroup"
|
||||
description: "The groupID of the user running the application"
|
||||
schema:
|
||||
type: int
|
||||
default: 0
|
||||
# Include{securityContextContainer}
|
||||
# Include{securityContextAdvanced}
|
||||
# Include{securityContextPod}
|
||||
- variable: fsGroup
|
||||
label: "fsGroup"
|
||||
description: "The group that should own ALL storage."
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
# Include{resources}
|
||||
# Include{advanced}
|
||||
# Include{addons}
|
||||
# Include{codeserver}
|
||||
# Include{netshoot}
|
||||
# Include{vpn}
|
||||
# Include{documentation}
|
|
@ -0,0 +1 @@
|
|||
{{- include "tc.v1.common.lib.chart.notes" $ -}}
|
|
@ -0,0 +1 @@
|
|||
{{ include "tc.v1.common.loader.all" . }}
|
|
@ -0,0 +1,91 @@
|
|||
image:
|
||||
repository: tccr.io/truecharts/gamevault-backend
|
||||
pullPolicy: IfNotPresent
|
||||
tag: 2.0.0@sha256:1cde674b30dc9abc8ff5958f1cd0bce4382ba65f64bb33fdce35c5a8c12641f6
|
||||
|
||||
securityContext:
|
||||
container:
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
protocol: http
|
||||
port: 8080
|
||||
|
||||
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:
|
||||
SERVER_PORT: "{{ .Values.service.main.ports.main.port }}"
|
||||
# manually set and change to /games so its easy for users to know where to place their game files.
|
||||
VOLUMES_FILES: /games
|
||||
VOLUMES_IMAGES: /images
|
||||
VOLUMES_LOG: /logs
|
||||
# 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
|
||||
SERVER_ADMIN_USERNAME: "admin"
|
||||
SERVER_ADMIN_PASSWORD: "password"
|
||||
SERVER_REGISTRATION_DISABLED: true
|
||||
SERVER_ACCOUNT_ACTIVATION_DISABLED: false
|
||||
# SERVER
|
||||
SERVER_LOG_LEVEL: info
|
||||
SERVER_CORS_ALLOWED_ORIGINS: "*"
|
||||
# GAMES
|
||||
GAMES_INDEX_INTERVAL_IN_MINUTES: 5
|
||||
# IMAGES
|
||||
IMAGE_GC_KEEP_DAYS: 30
|
||||
IMAGE_GC_INTERVAL_MINUTES: 60
|
||||
# RAWG
|
||||
RAWG_API_URL: https://api.rawg.io/api
|
||||
RAWG_API_CACHE_DAYS: 7
|
||||
# RAWG_API_KEY: ""
|
||||
|
||||
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:
|
||||
enabled: true
|
Loading…
Reference in New Issue