Skip to content

Commit

Permalink
fix(server): fix website hosting routes (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal authored Aug 24, 2023
1 parent 1992018 commit d3dba8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/gateway/apisix.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class ApisixService {
conf: [
{
name: 'try-path',
value: `{"paths":["$uri", "$uri/", "$uriindex.html", "$uri/index.html"], "host": "http://${upstreamNode}/${website.bucketName}"}`,
value: `{"paths":["$uri", "$uri/", "$uriindex.html", "$uri/index.html", "index.html"], "host": "http://${upstreamNode}/${website.bucketName}"}`,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion server/src/monitor/monitor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class MonitorService {
const conf = await this.getPrometheusConf(appid)
if (!conf?.apiUrl) {
this.logger.warn('Metrics not available for no endpoint')
return []
return {}
}

const opts = {
Expand Down

0 comments on commit d3dba8a

Please sign in to comment.