Compare commits

..

No commits in common. "007b54102837f82f72b9d0b39cf1e61b81c5ba8b" and "214409a591f0026761f032e10a837ab4822efd9f" have entirely different histories.

6 changed files with 24 additions and 6 deletions

View File

@ -32,7 +32,7 @@
align-items: center;
justify-content: center;
font-family: sans-serif;
background: url('/maintenance_ella_reese.jpeg');
background: url('/img/maintenance_ella_reese.jpeg');
background-position: top center;
background-size: cover
}
@ -52,6 +52,8 @@
</head>
<body>
<div class="text">Traxxx is currently under maintenance. We will be back shortly!</div>
<div class="text">
<%= text %>
</div>
</body>
</html>

View File

@ -36,6 +36,10 @@ module.exports = {
maxAge: 2629800000, // 1 month
},
},
maintenance: {
enabled: false,
text: 'Traxxx is currently under maintenance. We will be back shortly!',
},
},
redis: {
host: 'localhost',

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.235.1",
"version": "1.235.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.235.1",
"version": "1.235.0",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.235.1",
"version": "1.235.0",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

View File

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 229 KiB

View File

@ -162,7 +162,19 @@ async function initServer() {
});
router.use(errorHandler);
if (config.web.maintenance.enabled) {
app.use(express.static('public'));
app.get('/', (req, res) => {
res.status(503).render(path.join(__dirname, '../../assets/maintenance.ejs'), {
analytics: config.analytics,
text: config.web.maintenance.text,
});
});
} else {
app.use(router);
}
const server = app.listen(config.web.port, config.web.host, () => {
const { address, port } = server.address();