Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/cec58fc5b7a96fd04a528a916988bf208474b202
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
6 additions and
6 deletions
@ -16,7 +16,7 @@ const config = {
s3enabled : false ,
s3endpoint : 'sfo3.digitaloceanspaces.com' ,
s3bucket : 'bucket-name' ,
s3 bucketEndpoint : false ,
s3 usePathStyle : false ,
s3accessKey : 'accessKey' ,
s3secretKey : 'secretKey' ,
} ;
@ -144,10 +144,10 @@ if (require.main === module) {
default : config . s3bucket ,
required : false
} ,
s3 bucketEndpoint : {
description : ' Whether the provided endpoint is a bucket path (true) or a bucket subdomain (false) ',
s3 usePathStyle : {
description : ' S3 path endpoint, otherwise uses subdomain endpoint ',
type : 'boolean' ,
default : config . s3 bucketEndpoint ,
default : config . s3 usePathStyle ,
required : false
} ,
s3accessKey : {
@ -8,14 +8,14 @@ const Thumbnail = require('./thumbnails');
const Vibrant = require ( './vibrant' ) ;
const Hash = require ( './hash' ) ;
const { getDatedDirname , sanitize , generateId , formatBytes , log } = require ( './utils' ) ;
const { s3enabled , s3endpoint , s3bucket , s3 bucketEndpoint , s3accessKey , s3secretKey , saveAsOriginal , maxUploadSize , mediaStrict } = require ( './config.json' ) ;
const { s3enabled , s3endpoint , s3bucket , s3 usePathStyle , s3accessKey , s3secretKey , saveAsOriginal , maxUploadSize , mediaStrict } = require ( './config.json' ) ;
const { CODE _UNSUPPORTED _MEDIA _TYPE } = require ( './MagicNumbers.json' ) ;
const ID _GEN _LENGTH = 32 ;
const ALLOWED _MIMETYPES = /(image)|(video)|(audio)\// ;
const s3 = new aws . S3 ( {
s3 BucketEndpoint: s3bucketEndpoint ,
s3 ForcePathStyle: s3usePathStyle ,
endpoint : new aws . Endpoint ( s3endpoint ) ,
credentials : new aws . Credentials ( { accessKeyId : s3accessKey , secretAccessKey : s3secretKey } )
} ) ;