Compare commits

...

4 Commits

Author SHA1 Message Date
DebaucheryLibrarian f36d0686a1 1.228.6 2023-06-19 03:56:07 +02:00
DebaucheryLibrarian d6b44615a0 Allow HTML in disclaimer and announcement. 2023-06-19 03:56:05 +02:00
DebaucheryLibrarian 687d4aec08 1.228.5 2023-06-19 03:28:57 +02:00
DebaucheryLibrarian 18f75595da Added GraphiQL disable. 2023-06-19 03:28:55 +02:00
7 changed files with 10 additions and 7 deletions

View File

@ -16,12 +16,14 @@
<p
v-if="config.showDisclaimer"
class="disclaimer"
>{{ config.disclaimer }}</p>
v-html="config.disclaimer"
/>
<p
v-if="config.showAnnouncement"
class="announcement"
>{{ config.announcement }}</p>
v-html="config.announcement"
/>
<div
ref="content"

View File

@ -13,6 +13,7 @@ module.exports = {
database: 'traxxx',
},
timeout: 5000,
graphiql: false,
},
web: {
host: '0.0.0.0',

View File

@ -2,7 +2,6 @@
module.exports = {
apps: [
// LEAFS
{
name: 'traxxx',
script: 'src/init.js',

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.228.4",
"version": "1.228.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.228.4",
"version": "1.228.6",
"license": "ISC",
"dependencies": {
"@casl/ability": "^5.2.2",

View File

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

View File

@ -27,7 +27,7 @@ function initPostgraphile(credentials) {
// watchPg: true,
disableDefaultMutations: true,
dynamicJson: true,
graphiql: true,
graphiql: config.database.graphiql,
enhanceGraphiql: true,
allowExplain: () => true,
// simpleCollections: 'only',

View File

@ -72,6 +72,7 @@ async function initServer() {
const store = new KnexSessionStore({ knex });
app.set('view engine', 'ejs');
app.disable('x-powered-by');
router.use('/media', express.static(config.media.path));
router.use(express.static('public'));