authelia/internal/suites/example/compose/nginx/backend/html/mail/secret.html

29 lines
783 B
HTML
Raw Normal View History

<html>
2019-11-30 16:49:52 +00:00
<head>
<title>Secret</title>
<link rel="icon" href="/icon.png" type="image/png" />
<script>
window.onload = () =>{
/**
* this section renames example.com for the real hostname
* it's required for multi cookie domain suite
* */
const hostname = window.location.hostname
const protocol = window.location.protocol
const port = window.location.port
const domain = hostname.replace(/^\w+\.(.+)$/i, "$1")
const newDomain = `${domain}:${port}`
document.body.innerHTML = document.body.innerHTML.replace(/example.com:8080/ig, newDomain)
}
</script>
2019-11-30 16:49:52 +00:00
</head>
<body id="secret">
This is a very important secret!<br />
Go back to <a href="https://home.example.com:8080/">home page</a>.
2019-11-30 16:49:52 +00:00
</body>
</html>