FAQs
Let's address some frequently asked questions about Curtain:
Q: Can I use Curtain with load balancers?
A: Yes, Curtain works with load balancers. Ensure your maintenance file storage
is synchronized across all servers, typically using a shared filesystem or
a distributed cache like Redis.
Q: How does IP whitelisting work with proxy servers?
A: Curtain respects Laravel's trusted proxy configuration. Ensure your proxy
settings are properly configured in config/trustedproxy.php:
'proxies' => [
'192.168.1.10',
'10.0.0.0/8',
],
Q: Can I customize the countdown format?
A: Yes, you can modify the countdown display by extending the countdown component:
// resources/views/vendor/curtain/components/countdown.blade.php
@push('scripts')
<script>
formatTime(distance) {
// Your custom format logic
}
</script>
@endpush
Last updated