Last active
August 29, 2024 08:14
-
-
Save dlubitz/9df1f8b6f18a43d2a7e230c9c9deaa89 to your computer and use it in GitHub Desktop.
Maintenance page until date time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root { | |
launch { | |
@context.launchDateTime = ${Date.parse('2024-08-26 21:41:00+02:00', 'Y-m-d H:i:sP')} | |
condition = ${Date.now() < launchDateTime && !Security.isAuthenticated()} | |
@position = "start" | |
renderer = ${File.readFile("resource://My.Package/Private/Template/index.htm")} | |
@cache { | |
maximumLifetime = ${launchDateTime.timestamp - Date.now().timestamp} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment