Skip to content

Commit

Permalink
Release 9.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 authored Oct 28, 2023
2 parents 486edc2 + f2774d2 commit bcc78a7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/add-issues-to-project.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Add issues to project
on:
pull_request:
types:
- opened
issues:
types:
- opened
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# GameVault Backend Server Changelog

## 9.0.3

Recommended Gamevault App Version: `v1.7.3`

### Changes

- Fixed Backup and Restore not working anymore
- Fixed Admin Password reset not working anymore

### Thanks

- @Kudjo

## 9.0.2

Recommended Gamevault App Version: `v1.7.3`
Expand All @@ -8,6 +21,11 @@ Recommended Gamevault App Version: `v1.7.3`

- Fixed Socket-Secret migration for POSTGRES Users that i broke in v9.0.1.

### Thanks

- @Kudjo
- @sandstormman

## 9.0.1

Recommended Gamevault App Version: `v1.7.3`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gamevault-backend",
"version": "9.0.2",
"version": "9.0.3",
"description": "the self-hosted gaming platform for drm-free games",
"author": "Alkan Alper, Schäfer Philip GbR / Phalcode",
"private": true,
Expand Down
26 changes: 13 additions & 13 deletions src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ const configuration = {
ONLINE_ACTIVITIES_DISABLED: parseBooleanEnvVariable(
process.env.SERVER_ONLINE_ACTIVITIES_DISABLED,
),
},
} as const,
VOLUMES: {
FILES: parsePath(process.env.VOLUMES_FILES, "/files"),
IMAGES: parsePath(process.env.VOLUMES_IMAGES, "/images"),
LOGS: parsePath(process.env.VOLUMES_LOGS, "/logs"),
SQLITEDB: parsePath(process.env.VOLUMES_SQLITEDB, "/db"),
},
} as const,
DB: {
SYSTEM: process.env.DB_SYSTEM || "POSTGRESQL",
HOST: process.env.DB_HOST || "localhost",
Expand All @@ -73,13 +73,13 @@ const configuration = {
DATABASE: process.env.DB_DATABASE || "gamevault",
DEBUG: parseBooleanEnvVariable(process.env.DB_DEBUG),
SYNCHRONIZE: parseBooleanEnvVariable(process.env.DB_SYNCHRONIZE),
},
} as const,
RAWG_API: {
URL: process.env.RAWG_API_URL || "https://api.rawg.io/api",
KEY: process.env.RAWG_API_KEY || "",
CACHE_DAYS: Number(process.env.RAWG_API_CACHE_DAYS) || 30,
EXCLUDE_STORES: process.env.RAWG_API_EXCLUDE_STORES || "9",
},
} as const,
USERS: {
REQUIRE_EMAIL: parseBooleanEnvVariable(process.env.USERS_REQUIRE_EMAIL),
REQUIRE_FIRST_NAME: parseBooleanEnvVariable(
Expand All @@ -88,7 +88,7 @@ const configuration = {
REQUIRE_LAST_NAME: parseBooleanEnvVariable(
process.env.USERS_REQUIRE_LAST_NAME,
),
},
} as const,
GAMES: {
INDEX_INTERVAL_IN_MINUTES:
Number(process.env.GAMES_INDEX_INTERVAL_IN_MINUTES) || 5,
Expand All @@ -100,7 +100,7 @@ const configuration = {
process.env.SEARCH_RECURSIVE,
true,
),
},
} as const,
IMAGE: {
MAX_SIZE_IN_KB:
Number(process.env.IMAGE_MAX_SIZE_IN_KB) * 1000 || 10_000_000,
Expand All @@ -110,7 +110,7 @@ const configuration = {
process.env.GAMES_SUPPORTED_IMAGE_FORMATS,
globals.SUPPORTED_IMAGE_FORMATS,
),
},
} as const,
TESTING: {
AUTHENTICATION_DISABLED: parseBooleanEnvVariable(
process.env.TESTING_AUTHENTICATION_DISABLED,
Expand All @@ -123,14 +123,14 @@ const configuration = {
GOOGLE_API_DISABLED: parseBooleanEnvVariable(
process.env.TESTING_GOOGLE_API_DISABLED,
),
},
};
} as const,
} as const;

export function getCensoredConfiguration() {
const conf = { ...configuration };
conf.DB.PASSWORD = "**REDACTED**";
conf.SERVER.ADMIN_PASSWORD = "**REDACTED**";
return conf;
const censoredConfig = JSON.parse(JSON.stringify(configuration));
censoredConfig.DB.PASSWORD = "**REDACTED**";
censoredConfig.SERVER.ADMIN_PASSWORD = "**REDACTED**";
return censoredConfig;
}

export default configuration;

0 comments on commit bcc78a7

Please sign in to comment.