revamping frontend logging system and reorganising documentation
This commit is contained in:
@@ -266,14 +266,14 @@ def verify_domain_ownership(
|
||||
Verify domain ownership via DNS TXT record (Admin only).
|
||||
|
||||
**Verification Process:**
|
||||
1. Queries DNS for TXT record: `_letzshop-verify.{domain}`
|
||||
1. Queries DNS for TXT record: `_wizamart-verify.{domain}`
|
||||
2. Checks if verification token matches
|
||||
3. If found, marks domain as verified
|
||||
|
||||
**Requirements:**
|
||||
- Vendor must have added TXT record to their DNS
|
||||
- DNS propagation may take 5-15 minutes
|
||||
- Record format: `_letzshop-verify.domain.com` TXT `{token}`
|
||||
- Record format: `_wizamart-verify.domain.com` TXT `{token}`
|
||||
|
||||
**After verification:**
|
||||
- Domain can be activated
|
||||
|
||||
@@ -73,7 +73,7 @@ class Settings(BaseSettings):
|
||||
auto_provision_ssl: bool = False # Set to True if using automated SSL
|
||||
|
||||
# DNS verification
|
||||
dns_verification_prefix: str = "_letzshop-verify"
|
||||
dns_verification_prefix: str = "_wizamart-verify"
|
||||
dns_verification_ttl: int = 3600
|
||||
|
||||
model_config = {"env_file": ".env"} # Updated syntax for Pydantic v2
|
||||
|
||||
@@ -286,7 +286,7 @@ class VendorDomainService:
|
||||
Verify domain ownership via DNS TXT record.
|
||||
|
||||
The vendor must add a TXT record:
|
||||
Name: _letzshop-verify.{domain}
|
||||
Name: _wizamart-verify.{domain}
|
||||
Value: {verification_token}
|
||||
|
||||
Args:
|
||||
@@ -313,7 +313,7 @@ class VendorDomainService:
|
||||
# Query DNS TXT records
|
||||
try:
|
||||
txt_records = dns.resolver.resolve(
|
||||
f"_letzshop-verify.{domain.domain}",
|
||||
f"_wizamart-verify.{domain.domain}",
|
||||
'TXT'
|
||||
)
|
||||
|
||||
@@ -339,7 +339,7 @@ class VendorDomainService:
|
||||
except dns.resolver.NXDOMAIN:
|
||||
raise DomainVerificationFailedException(
|
||||
domain.domain,
|
||||
f"DNS record _letzshop-verify.{domain.domain} not found"
|
||||
f"DNS record _wizamart-verify.{domain.domain} not found"
|
||||
)
|
||||
except dns.resolver.NoAnswer:
|
||||
raise DomainVerificationFailedException(
|
||||
@@ -394,7 +394,7 @@ class VendorDomainService:
|
||||
},
|
||||
"txt_record": {
|
||||
"type": "TXT",
|
||||
"name": "_letzshop-verify",
|
||||
"name": "_wizamart-verify",
|
||||
"value": domain.verification_token,
|
||||
"ttl": 3600
|
||||
},
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<!-- Core Scripts - ORDER MATTERS! -->
|
||||
|
||||
<!-- 1. FIRST: Log Configuration -->
|
||||
<script src="{{ url_for('static', path='admin/js/log-config.js') }}"></script>
|
||||
<script src="{{ url_for('static', path='shared/js/log-config.js') }}"></script>
|
||||
|
||||
<!-- 2. SECOND: Icons (before Alpine.js) -->
|
||||
<script src="{{ url_for('static', path='shared/js/icons.js') }}"></script>
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
<!-- Typography Section -->
|
||||
<div class="px-4 py-3 bg-white rounded-lg shadow-md dark:bg-gray-800">
|
||||
<h3 class="mb-4 text-lg font-semibold text-gray-700 dark:text-gray-200">
|
||||
<span x-html="$icon('document-text', 'inline w-5 h-5 mr-2')"></span>
|
||||
<span x-html="$icon('document', 'inline w-5 h-5 mr-2')"></span>
|
||||
Typography
|
||||
</h3>
|
||||
<div class="grid gap-4 md:grid-cols-2">
|
||||
|
||||
Reference in New Issue
Block a user