- Cloudflare e configurazione dominio DNS (host, host_test, host_ip, ecc...)

This commit is contained in:
Surya Paolo
2024-09-09 21:49:31 +02:00
parent e9ac281125
commit 16ddb8095e
39 changed files with 438 additions and 64 deletions

View File

@@ -5235,6 +5235,16 @@ export const tools = {
return (site.confpages.enableDebugOn)
},
getDomainSite(): string {
const globalStore = useGlobalStore()
const site = globalStore.site
if (site) {
return site.host!
}
return ''
},
isVerified(): boolean {
const globalStore = useGlobalStore()
const site = globalStore.site
@@ -8735,6 +8745,28 @@ export const tools = {
return `Coordinate: ${lng}, Lat: ${lat}`
}
}
},
getHostPuntamento(arrDNS: any, tofind: string, paramsulServer: string): any {
let checkDomain = ''
let indrec = arrDNS.findIndex((rec: any) => rec.name === tofind && rec.type === 'A')
let color = 'red'
let ok = false
if (indrec >= 0) {
checkDomain = tofind + ' -> ' + arrDNS[indrec].content
let giusto = (paramsulServer === arrDNS[indrec].content)
color = giusto ? 'green' : 'red'
if (!giusto) {
checkDomain += ' (<strong>al posto di -> ' + paramsulServer + '</strong>)'
} else {
ok = true
}
} else {
checkDomain = tofind + ' N/A'
}
return { text: '<span style="color: ' + color + ';">' + checkDomain + '</span><br>', ok }
}
// FINE !