Compare commits
No commits in common. "007b54102837f82f72b9d0b39cf1e61b81c5ba8b" and "214409a591f0026761f032e10a837ab4822efd9f" have entirely different histories.
007b541028
...
214409a591
|
@ -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>
|
|
@ -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',
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 229 KiB |
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue