feat: Random domain for services

This commit is contained in:
Andras Bacsai 2022-02-23 13:25:57 +01:00
parent bb32d0f7d1
commit 15cbac97c2

View File

@ -37,10 +37,16 @@
import Services from './_Services/_Services.svelte';
import { getDomain } from '$lib/components/common';
import VaultWarden from '$lib/components/svg/services/VaultWarden.svelte';
import cuid from 'cuid';
import { browser } from '$app/env';
export let service;
export let isRunning;
export let readOnly;
if (browser && window.location.hostname === 'demo.coolify.io') {
service.fqdn = `${cuid()}.demo.coolify.io`;
}
</script>
<div