Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/e113cb57eede7c4b13935b2f90a8bfc3201926a4
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
6 additions and
1 deletions
@ -38,7 +38,7 @@ export const setRateLimiter = (group: string, config: EndpointRateLimitConfigura
* creates middleware for rate limiting
* /
export const rateLimiterMiddleware = ( group : string , config : EndpointRateLimitConfiguration | undefined ) : ( req : Request , res : Response , next : NextFunction ) = > void = > {
if ( rateLimiterGroups . has ( group ) ) setRateLimiter ( group , config ) ;
if ( ! rateLimiterGroups . has ( group ) ) setRateLimiter ( group , config ) ;
return ( req , res , next ) = > {
return rateLimiterGroups . get ( group ) ! ( req , res , next ) ;
@ -35,6 +35,11 @@ router.post('/setup', BodyParserJson(), async (req, res) => {
if ( UserConfig . config . rateLimit ? . login ) setRateLimiter ( 'login' , UserConfig . config . rateLimit . login ) ;
if ( UserConfig . config . rateLimit ? . upload ) setRateLimiter ( 'upload' , UserConfig . config . rateLimit . upload ) ;
// set rate limits
if ( UserConfig . config . rateLimit ? . api ) setRateLimiter ( 'api' , UserConfig . config . rateLimit . api ) ;
if ( UserConfig . config . rateLimit ? . login ) setRateLimiter ( 'login' , UserConfig . config . rateLimit . login ) ;
if ( UserConfig . config . rateLimit ? . upload ) setRateLimiter ( 'upload' , UserConfig . config . rateLimit . upload ) ;
log . success ( 'Setup' , 'completed' ) ;
return res . json ( { success : true } ) ;