Maintenance Mode
OpenDXP offers a maintenance mode, which restricts access to the admin user interface to the user that enabled the maintenance mode. It is session based and no other user will be able to access the website or the admin interface.
All other users get a default "Temporary not available" page displayed.
Moreover, maintenance scripts and headless executions of OpenDXP will be prevented. In addition, you can enable or disable the maintenance mode via the following console command:
bin/console opendxp:maintenance-mode --enable
bin/console opendxp:maintenance-mode --disable
Customize Maintenance Page
Overwrite the service OpenDxp\Bundle\CoreBundle\EventListener\MaintenancePageListener in your config/services.yaml.
OpenDxp\Bundle\CoreBundle\EventListener\MaintenancePageListener:
calls:
- [loadTemplateFromResource, ['@@App/Resources/misc/maintenance.html']]
Use loadTemplateFromPath if the file is located outside a bundle.
OpenDxp\Bundle\CoreBundle\EventListener\MaintenancePageListener:
calls:
- [loadTemplateFromPath, ['/templates/maintenance.html']]