{service.name}
@@ -133,6 +136,8 @@
{:else if service.type === 'meilisearch'}
+ {:else if service.type === 'umami'}
+
{/if}
{service.name}
diff --git a/src/routes/settings/index.json.ts b/src/routes/settings/index.json.ts
index 2f15c5066..210f12782 100644
--- a/src/routes/settings/index.json.ts
+++ b/src/routes/settings/index.json.ts
@@ -64,10 +64,14 @@ export const post: RequestHandler = async (event) => {
};
if (status === 401) return { status, body };
- const { fqdn, isRegistrationEnabled, dualCerts, minPort, maxPort } = await event.request.json();
+ const { fqdn, isRegistrationEnabled, dualCerts, minPort, maxPort, isAutoUpdateEnabled } =
+ await event.request.json();
try {
const { id } = await db.listSettings();
- await db.prisma.setting.update({ where: { id }, data: { isRegistrationEnabled, dualCerts } });
+ await db.prisma.setting.update({
+ where: { id },
+ data: { isRegistrationEnabled, dualCerts, isAutoUpdateEnabled }
+ });
if (fqdn) {
await db.prisma.setting.update({ where: { id }, data: { fqdn } });
}
diff --git a/src/routes/settings/index.svelte b/src/routes/settings/index.svelte
index f52cab13f..dce1362d7 100644
--- a/src/routes/settings/index.svelte
+++ b/src/routes/settings/index.svelte
@@ -40,10 +40,9 @@
import { toast } from '@zerodevx/svelte-toast';
import { t } from '$lib/translations';
- import Language from './_Language.svelte';
-
let isRegistrationEnabled = settings.isRegistrationEnabled;
let dualCerts = settings.dualCerts;
+ let isAutoUpdateEnabled = settings.isAutoUpdateEnabled;
let minPort = settings.minPort;
let maxPort = settings.maxPort;
@@ -76,7 +75,10 @@
if (name === 'dualCerts') {
dualCerts = !dualCerts;
}
- await post(`/settings.json`, { isRegistrationEnabled, dualCerts });
+ if (name === 'isAutoUpdateEnabled') {
+ isAutoUpdateEnabled = !isAutoUpdateEnabled;
+ }
+ await post(`/settings.json`, { isRegistrationEnabled, dualCerts, isAutoUpdateEnabled });
return toast.push(t.get('application.settings_saved'));
} catch ({ error }) {
return errorNotification(error);
@@ -192,6 +194,16 @@
on:click={() => changeSettings('isRegistrationEnabled')}
/>
+ {#if browser && (window.location.hostname === 'staging.coolify.io' || window.location.hostname === 'localhost')}
+
+ changeSettings('isAutoUpdateEnabled')}
+ />
+
+ {/if}