服务器配置
This commit is contained in:
1 parent
a1b4a63552
commit
fa7c8244b0
33 files changed
+1882
-363
No files matched your search
@@ -244,11 +244,11 @@ describe('validateDomainSeparationPair', () => {
|
||||
expect(validateDomainSeparationPair('', 'https://pic.example.com')).toContain('同时填写')
|
||||
})
|
||||
|
||||
it('rejects identical hostnames', () => {
|
||||
it('allows identical hostnames for compatible multi-role hosting', () => {
|
||||
expect(validateDomainSeparationPair(
|
||||
'https://same.example.com',
|
||||
'https://same.example.com'
|
||||
)).toContain('相同主机名')
|
||||
)).toBeNull()
|
||||
})
|
||||
|
||||
it('accepts different hostnames', () => {
|
||||
@@ -257,6 +257,24 @@ describe('validateDomainSeparationPair', () => {
|
||||
'https://pic.example.com'
|
||||
)).toBeNull()
|
||||
})
|
||||
|
||||
it('accepts distinct image, video and file hostnames', () => {
|
||||
expect(validateDomainSeparationPair(
|
||||
'https://admin.example.com',
|
||||
'https://pic.example.com',
|
||||
'https://video.example.com',
|
||||
'https://file.example.com'
|
||||
)).toBeNull()
|
||||
})
|
||||
|
||||
it('allows duplicate media hostnames', () => {
|
||||
expect(validateDomainSeparationPair(
|
||||
'https://admin.example.com',
|
||||
'https://pic.example.com',
|
||||
'https://pic.example.com',
|
||||
'https://file.example.com'
|
||||
)).toBeNull()
|
||||
})
|
||||
})
|
||||
|
||||
describe('validateSettingsDomainPatch', () => {
|
||||
|
||||
Reference in new issue
Block a user