Skip to content

Commit

Permalink
Merge pull request #1233 from runtipi/release/3.0.2
Browse files Browse the repository at this point in the history
Release/3.0.2
  • Loading branch information
meienberger committed Feb 15, 2024
2 parents 69b4919 + 5172823 commit 883f1b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "runtipi",
"version": "3.0.1",
"version": "3.0.2",
"description": "A homeserver for everyone",
"scripts": {
"clean-containers": "docker rm -f $(docker ps -a -q)",
Expand Down
2 changes: 2 additions & 0 deletions packages/worker/src/lib/system/system.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const generateSystemEnvFile = async () => {
envMap.set('DEMO_MODE', typeof data.demoMode === 'boolean' || typeof data.demoMode === 'string' ? String(data.demoMode) : envMap.get('DEMO_MODE') || 'false');
envMap.set('GUEST_DASHBOARD', typeof data.guestDashboard === 'boolean' || typeof data.guestDashboard === 'string' ? String(data.guestDashboard) : envMap.get('GUEST_DASHBOARD') || 'false');
envMap.set('LOCAL_DOMAIN', data.localDomain || envMap.get('LOCAL_DOMAIN') || 'tipi.lan');
envMap.set('ALLOW_AUTO_THEMES', typeof data.allowAutoThemes === 'boolean' || typeof data.allowAutoThemes === 'string' ? String(data.allowAutoThemes) : envMap.get('ALLOW_AUTO_THEMES') || 'true');
envMap.set(
'ALLOW_ERROR_MONITORING',
typeof data.allowErrorMonitoring === 'boolean' || typeof data.allowErrorMonitoring === 'string' ? String(data.allowErrorMonitoring) : envMap.get('ALLOW_ERROR_MONITORING') || 'false',
Expand All @@ -170,6 +171,7 @@ export const generateSystemEnvFile = async () => {
'PERSIST_TRAEFIK_CONFIG',
typeof data.persistTraefikConfig === 'boolean' || typeof data.persistTraefikConfig === 'string' ? String(data.persistTraefikConfig) : envMap.get('PERSIST_TRAEFIK_CONFIG') || 'false',
);

await fs.promises.writeFile(envFilePath, envMapToString(envMap));

return envMap;
Expand Down
2 changes: 1 addition & 1 deletion src/server/core/TipiConfig/TipiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export class TipiConfigClass {
demoMode: conf.DEMO_MODE,
guestDashboard: conf.GUEST_DASHBOARD,
allowErrorMonitoring: conf.ALLOW_ERROR_MONITORING,
allowAutoThemes: conf.ALLOW_AUTO_THEMES,
seePreReleaseVersions: false,
allowAutoThemes: true,
};

const parsedConfig = envSchema.safeParse({ ...envConfig, ...this.getFileConfig() });
Expand Down

0 comments on commit 883f1b6

Please sign in to comment.