Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/8d545f1d37c6a7166e6de980ecdd57263529106b
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
18 additions and
0 deletions
@ -26,6 +26,7 @@ document.addEventListener('DOMContentLoaded', () => {
// * Setup button click handler
Elements . submitButton . addEventListener ( 'click' , async ( ) = > {
// Base configuration values
const config : UserConfiguration = {
uploadsDir : Elements.dirInput.value ,
idType : Elements.idTypeInput.value as IdType ,
@ -34,6 +35,23 @@ document.addEventListener('DOMContentLoaded', () => {
maximumFileSize : parseInt ( Elements . fileSizeInput . value ) ,
} ;
// Append S3 to config, if specified
if ( Elements . s3endpoint . value != null && Elements . s3endpoint . value !== '' ) {
config . s3 = {
endpoint : Elements.s3endpoint.value ,
bucket : Elements.s3bucket.value ,
credentials : {
accessKey : Elements.s3accessKey.value ,
secretKey : Elements.s3secretKey.value
}
} ;
// Also append region, if it was provided
if ( Elements . s3region . value != null && Elements . s3region . value !== '' )
config . s3 . region = Elements . s3region . value ;
}
// Do setup
fetch ( '/setup' , {
method : 'POST' ,
headers : { 'Content-Type' : 'application/json' } ,