Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/39433ebc937d89e8464b86ed38f31e70ca84fb34
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
11 additions and
2 deletions
@ -25,10 +25,13 @@ if (require.main === module) {
const fs = require ( 'fs-extra' ) ;
const prompt = require ( 'prompt' ) ;
// Override default config with existing config to allow migrating configs
try {
const existingConfig = require ( './config.json' ) ;
Object . keys ( existingConfig ) . forEach ( ( key ) => Object . prototype . hasOwnProperty . call ( config , key ) && ( config [ key ] = existingConfig [ key ] ) )
} catch ( ex ) { console . log ( ex ) }
} catch ( ex ) {
if ( ex . code !== 'MODULE_NOT_FOUND' ) console . log ( ex ) ;
}
// Disabled the annoying "prompt: " prefix and removes colours
prompt . message = '' ;
@ -7,9 +7,15 @@ const token = require('./generators/token');
const zwsGen = require ( './generators/zws' ) ;
const randomGen = require ( './generators/random' ) ;
const gfyGen = require ( './generators/gfycat' ) ;
const { useSsl , port , domain , isProxied , diskFilePath , saveWithDate , s3bucket , s3endpoint } = require ( './config.json' ) ;
const { HTTP , HTTPS , KILOBYTES } = require ( './MagicNumbers.json' ) ;
// Catch config.json not existing when running setup script
try {
var { useSsl , port , domain , isProxied , diskFilePath , saveWithDate , s3bucket , s3endpoint } = require ( './config.json' ) ;
} catch ( ex ) {
if ( ex . code !== 'MODULE_NOT_FOUND' ) console . log ( ex ) ;
}
const path = ( ... paths ) => Path . join ( _ _dirname , ... paths ) ;
function getTrueHttp ( ) {