fix(gamevault-backend) fix the gui options. (#11662)
**Description** top level section and separate section for custom variables. ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [X] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [X] 🔃 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 - [X] ⬆️ 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. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ 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:
@@ -21,7 +21,7 @@ sources:
|
||||
- https://github.com/truecharts/charts/tree/master/charts/stable/gamevault-backend
|
||||
- https://github.com/Phalcode/gamevault-backend
|
||||
type: application
|
||||
version: 1.0.2
|
||||
version: 1.1.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- games
|
||||
|
||||
@@ -9,193 +9,195 @@ questions:
|
||||
# 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: "List of Allowed CORS origins for the server."
|
||||
schema:
|
||||
type: list
|
||||
empty: false
|
||||
required: true
|
||||
default:
|
||||
- "*"
|
||||
items:
|
||||
- variable: cors
|
||||
label: Cors
|
||||
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
|
||||
- variable: GAMES_SEARCH_RECURSIVE
|
||||
label: "Games Search Recursive"
|
||||
description: "Toggling the Indexer's search for games in sub folders."
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
- variable: GAMES_SUPPORTED_FILE_FORMATS
|
||||
label: "Games Supported File Formats"
|
||||
description: "Custom list of file formats."
|
||||
schema:
|
||||
type: list
|
||||
empty: false
|
||||
default:
|
||||
- ".7z"
|
||||
- ".xz"
|
||||
- ".bz2"
|
||||
- ".gz"
|
||||
- ".tar"
|
||||
- ".zip"
|
||||
- ".wim"
|
||||
- ".ar"
|
||||
- ".arj"
|
||||
- ".cab"
|
||||
- ".chm"
|
||||
- ".cpio"
|
||||
- ".cramfs"
|
||||
- ".dmg"
|
||||
- ".ext"
|
||||
- ".fat"
|
||||
- ".gpt"
|
||||
- ".hfs"
|
||||
- ".ihex"
|
||||
- ".iso"
|
||||
- ".lzh"
|
||||
- ".lzma"
|
||||
- ".mbr"
|
||||
- ".msi"
|
||||
- ".nsis"
|
||||
- ".ntfs"
|
||||
- ".qcow2"
|
||||
- ".rar"
|
||||
- ".rpm"
|
||||
- ".squashfs"
|
||||
- ".udf"
|
||||
- ".uefi"
|
||||
- ".vdi"
|
||||
- ".vhd"
|
||||
- ".vmdk"
|
||||
- ".wim"
|
||||
- ".xar"
|
||||
- ".z"
|
||||
required: true
|
||||
items:
|
||||
- variable: format
|
||||
label: Format
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: ""
|
||||
- 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}
|
||||
|
||||
- variable: gamevault
|
||||
group: App Configuration
|
||||
label: Gamevault
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: server
|
||||
label: Server
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: admin_username
|
||||
label: Admin User
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: ""
|
||||
- variable: admin_password
|
||||
label: Admin Password
|
||||
schema:
|
||||
type: string
|
||||
private: true
|
||||
required: true
|
||||
default: ""
|
||||
- variable: registration_disabled
|
||||
label: Registration Disabled
|
||||
description: If registration is enabled or not.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: account_activation_disabled
|
||||
label: Account Activation Disabled
|
||||
description: If accounts need to be activated by an admin before using them.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: allowed_origins
|
||||
label: Allowed Origins
|
||||
description: List of Allowed CORS origins for the server.
|
||||
schema:
|
||||
type: list
|
||||
empty: false
|
||||
required: true
|
||||
default:
|
||||
- "*"
|
||||
items:
|
||||
- variable: origin
|
||||
label: Origin
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: ""
|
||||
- variable: log_level
|
||||
label: 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
|
||||
label: Games
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: index_interval_in_minutes
|
||||
label: Index Interval In Minutes
|
||||
description: Determines how often the server should index the list of games.
|
||||
schema:
|
||||
type: int
|
||||
default: 5
|
||||
- variable: search_recursive
|
||||
label: Search Recursive
|
||||
description: Toggling the Indexer's search for games in sub folders.
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
- variable: file_formats
|
||||
label: Supported File Formats
|
||||
description: Custom list of file formats.
|
||||
schema:
|
||||
type: list
|
||||
empty: false
|
||||
required: true
|
||||
default:
|
||||
- ".7z"
|
||||
- ".xz"
|
||||
- ".bz2"
|
||||
- ".gz"
|
||||
- ".tar"
|
||||
- ".zip"
|
||||
- ".wim"
|
||||
- ".ar"
|
||||
- ".arj"
|
||||
- ".cab"
|
||||
- ".chm"
|
||||
- ".cpio"
|
||||
- ".cramfs"
|
||||
- ".dmg"
|
||||
- ".ext"
|
||||
- ".fat"
|
||||
- ".gpt"
|
||||
- ".hfs"
|
||||
- ".ihex"
|
||||
- ".iso"
|
||||
- ".lzh"
|
||||
- ".lzma"
|
||||
- ".mbr"
|
||||
- ".msi"
|
||||
- ".nsis"
|
||||
- ".ntfs"
|
||||
- ".qcow2"
|
||||
- ".rar"
|
||||
- ".rpm"
|
||||
- ".squashfs"
|
||||
- ".udf"
|
||||
- ".uefi"
|
||||
- ".vdi"
|
||||
- ".vhd"
|
||||
- ".vmdk"
|
||||
- ".wim"
|
||||
- ".xar"
|
||||
- ".z"
|
||||
items:
|
||||
- variable: format
|
||||
label: Format
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: ""
|
||||
- variable: images
|
||||
label: Images
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: gc_keep_days
|
||||
label: 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: gc_interval_minutes
|
||||
label: GC Interval Minutes
|
||||
description: How often to run the image garbage collector, in minutes.
|
||||
schema:
|
||||
type: int
|
||||
default: 60
|
||||
min: 1
|
||||
- variable: rawg
|
||||
label: Rawg
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: api_url
|
||||
label: API Url
|
||||
schema:
|
||||
type: string
|
||||
default: "https://api.rawg.io/api"
|
||||
- variable: api_cache_days
|
||||
label: API Cache Days
|
||||
schema:
|
||||
type: int
|
||||
default: 7
|
||||
min: 1
|
||||
- variable: api_key
|
||||
label: API Key
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
# Include{containerConfig}
|
||||
# Include{podOptions}
|
||||
# Include{serviceRoot}
|
||||
|
||||
@@ -18,6 +18,28 @@ service:
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
|
||||
gamevault:
|
||||
server:
|
||||
admin_user: admin
|
||||
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: ""
|
||||
|
||||
workload:
|
||||
main:
|
||||
podSpec:
|
||||
@@ -52,24 +74,24 @@ workload:
|
||||
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_ADMIN_USERNAME: "{{ .Values.gamevault.server.admin_user }}"
|
||||
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 }}"
|
||||
# SERVER
|
||||
SERVER_LOG_LEVEL: info
|
||||
SERVER_CORS_ALLOWED_ORIGINS: '{{ join "," .Values.workload.main.podSpec.containers.main.env.SERVER_CORS_ALLOWED_ORIGINS }}'
|
||||
SERVER_LOG_LEVEL: "{{ .Values.gamevault.server.log_level }}"
|
||||
SERVER_CORS_ALLOWED_ORIGINS: '{{ join "," .Values.gamevault.server.allowed_origins }}'
|
||||
# GAMES
|
||||
GAMES_INDEX_INTERVAL_IN_MINUTES: 5
|
||||
GAMES_SEARCH_RECURSIVE: true
|
||||
GAMES_SUPPORTED_FILE_FORMATS: '{{ join "," .Values.workload.main.podSpec.containers.main.env.GAMES_SUPPORTED_FILE_FORMATS }}'
|
||||
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 }}'
|
||||
# IMAGES
|
||||
IMAGE_GC_KEEP_DAYS: 30
|
||||
IMAGE_GC_INTERVAL_MINUTES: 60
|
||||
IMAGE_GC_KEEP_DAYS: "{{ .Values.gamevault.images.gc_keep_days }}"
|
||||
IMAGE_GC_INTERVAL_MINUTES: "{{ .Values.gamevault.images.gc_interval_minutes }}"
|
||||
# RAWG
|
||||
RAWG_API_URL: https://api.rawg.io/api
|
||||
RAWG_API_CACHE_DAYS: 7
|
||||
# RAWG_API_KEY: ""
|
||||
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 }}"
|
||||
|
||||
persistence:
|
||||
logs:
|
||||
|
||||
Reference in New Issue
Block a user