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