Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/b9d6a8d0bed5bb24cb0b605daf59efd3b407e68b
You should set ROOT_URL correctly, otherwise the web may not work correctly.
6 changed files with
8 additions and
6 deletions
@ -20,7 +20,7 @@
## Features
- ✔️ Token authorization via HTTP `Authorization` header
- ✔️ Upload images, videos, gifs, files
- ✔️ Upload images, videos, gifs, audio, files
- ✔️ Fancy embeds on Discord
- ✔️ Seamless inline video embeds on Discord
- ✔️ Personal upload log via customizable Discord Webhooks
@ -117,7 +117,7 @@ if (require.main === module) {
required : false
} ,
mediaStrict : {
description : 'Only allow uploads of media files (images, videos )',
description : 'Only allow uploads of media files (images, videos , audio )',
type : 'boolean' ,
default : config . mediaStrict ,
required : false
@ -12,7 +12,7 @@ const { s3enabled, s3endpoint, s3bucket, s3accessKey, s3secretKey, saveAsOrigina
const { CODE _UNSUPPORTED _MEDIA _TYPE } = require ( './MagicNumbers.json' ) ;
const ID _GEN _LENGTH = 32 ;
const ALLOWED _MIMETYPES = /(image)|(video) \//;
const ALLOWED _MIMETYPES = /(image)|(video) |(audio) \//;
const s3 = new aws . S3 ( {
endpoint : new aws . Endpoint ( s3endpoint ) ,
@ -1,4 +1,4 @@
img , video {
img , video , audio {
border-left-width : 4px ;
border-left-style : solid ;
border-radius : 4px ;
@ -20,7 +20,7 @@
margin-right : 16px ;
}
img , video {
img , video , audio {
max-height : 50vh ;
}
@ -9,7 +9,7 @@ html
if color !== null
style: include css/img.css
style.
img, video { border-color: #{color}; }
img, video, audio { border-color: #{color}; }
// Open Graph (https://ogp.me/)
meta(property='og:type' content=ogtype)
@ -29,6 +29,8 @@ html
video#media(controls loop muted playsinline preload='metadata')&attributes(resourceAttr)
else if fileIs.image
img#media(decoding='async')&attributes(resourceAttr)
else if fileIs.audio
audio#media(controls loop preload='metadata')&attributes(resourceAttr)
else
code!=title
figcaption