mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
Merge branch 'master' into events
This commit is contained in:
57 files changed
+381
-229
No files matched your search
@@ -91,7 +91,7 @@ export async function apply(ctx: Context) {
|
||||
xhost: system.get('server.xhost'),
|
||||
});
|
||||
if (process.env.HYDRO_CLI) return;
|
||||
ctx.inject(['server', 'oauth', 'setting'], (childContext) => {
|
||||
await ctx.inject(['server', 'oauth', 'setting'], (childContext) => {
|
||||
const { server, on, oauth } = childContext;
|
||||
server.addHandlerLayer('init', async (c, next) => {
|
||||
const init = Date.now();
|
||||
|
||||
@@ -387,6 +387,7 @@ class LocalStorageService {
|
||||
status: !this.error,
|
||||
error: this.error,
|
||||
bucket: 'Hydro',
|
||||
dir: this.config.path,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -400,7 +401,7 @@ export async function apply(ctx: Context, config: ReturnType<typeof FileSetting>
|
||||
service = new LocalStorageService(config);
|
||||
}
|
||||
await service.start();
|
||||
ctx.inject(['server'], ({ server }) => {
|
||||
await ctx.inject(['server'], ({ server }) => {
|
||||
let endpoint = config.endPoint;
|
||||
if (config.type === 's3' && !config.pathStyle) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user