服务器配置
This commit is contained in:
1 parent
a1b4a63552
commit
fa7c8244b0
33 files changed
+1882
-363
No files matched your search
+27
-1
@@ -26,6 +26,8 @@ const allowRegistration = ref(false)
|
||||
const domainSeparation = ref(false)
|
||||
const siteBaseUrl = ref('')
|
||||
const imageBaseUrl = ref('')
|
||||
const videoBaseUrl = ref('')
|
||||
const fileBaseUrl = ref('')
|
||||
const loading = ref(false)
|
||||
const domainSeparationConfirmOpen = ref(false)
|
||||
|
||||
@@ -180,7 +182,9 @@ async function performSubmit() {
|
||||
allowRegistration: allowRegistration.value,
|
||||
domainSeparation: domainSeparation.value,
|
||||
siteBaseUrl: domainSeparation.value ? siteBaseUrl.value.trim() : undefined,
|
||||
imageBaseUrl: domainSeparation.value ? imageBaseUrl.value.trim() : undefined
|
||||
imageBaseUrl: domainSeparation.value ? imageBaseUrl.value.trim() : undefined,
|
||||
videoBaseUrl: domainSeparation.value ? videoBaseUrl.value.trim() : undefined,
|
||||
fileBaseUrl: domainSeparation.value ? fileBaseUrl.value.trim() : undefined
|
||||
}
|
||||
const result = isMigrate.value
|
||||
? await migrate(payload)
|
||||
@@ -363,6 +367,28 @@ async function performSubmit() {
|
||||
class="w-full font-mono text-sm"
|
||||
/>
|
||||
</div>
|
||||
<div class="space-y-2">
|
||||
<label class="text-sm">{{ t('setup.videoBaseUrl') }}</label>
|
||||
<p class="text-xs text-muted">
|
||||
{{ t('setup.videoBaseUrlHint') }}
|
||||
</p>
|
||||
<UInput
|
||||
v-model="videoBaseUrl"
|
||||
:placeholder="t('setup.videoBaseUrlPlaceholder')"
|
||||
class="w-full font-mono text-sm"
|
||||
/>
|
||||
</div>
|
||||
<div class="space-y-2">
|
||||
<label class="text-sm">{{ t('setup.fileBaseUrl') }}</label>
|
||||
<p class="text-xs text-muted">
|
||||
{{ t('setup.fileBaseUrlHint') }}
|
||||
</p>
|
||||
<UInput
|
||||
v-model="fileBaseUrl"
|
||||
:placeholder="t('setup.fileBaseUrlPlaceholder')"
|
||||
class="w-full font-mono text-sm"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user