Compare commits
2 Commits
214409a591
...
007b541028
Author | SHA1 | Date |
---|---|---|
|
007b541028 | |
|
b872d7a0ec |
|
@ -36,10 +36,6 @@ module.exports = {
|
||||||
maxAge: 2629800000, // 1 month
|
maxAge: 2629800000, // 1 month
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
maintenance: {
|
|
||||||
enabled: false,
|
|
||||||
text: 'Traxxx is currently under maintenance. We will be back shortly!',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
redis: {
|
redis: {
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.235.0",
|
"version": "1.235.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.235.0",
|
"version": "1.235.1",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.458.0",
|
"@aws-sdk/client-s3": "^3.458.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.235.0",
|
"version": "1.235.1",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
background: url('/img/maintenance_ella_reese.jpeg');
|
background: url('/maintenance_ella_reese.jpeg');
|
||||||
background-position: top center;
|
background-position: top center;
|
||||||
background-size: cover
|
background-size: cover
|
||||||
}
|
}
|
||||||
|
@ -52,8 +52,6 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="text">
|
<div class="text">Traxxx is currently under maintenance. We will be back shortly!</div>
|
||||||
<%= text %>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 229 KiB |
|
@ -162,19 +162,7 @@ async function initServer() {
|
||||||
});
|
});
|
||||||
|
|
||||||
router.use(errorHandler);
|
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);
|
app.use(router);
|
||||||
}
|
|
||||||
|
|
||||||
const server = app.listen(config.web.port, config.web.host, () => {
|
const server = app.listen(config.web.port, config.web.host, () => {
|
||||||
const { address, port } = server.address();
|
const { address, port } = server.address();
|
||||||
|
|
Loading…
Reference in New Issue