mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(server): selfhost issues (#5623)
- env name in helm chart - omit health check controller in selfhost env
This commit is contained in:
@@ -73,7 +73,7 @@ spec:
|
|||||||
value: "{{ .Values.app.path }}"
|
value: "{{ .Values.app.path }}"
|
||||||
- name: AFFINE_SERVER_HOST
|
- name: AFFINE_SERVER_HOST
|
||||||
value: "{{ .Values.app.host }}"
|
value: "{{ .Values.app.host }}"
|
||||||
- name: AFFINE_SERVER_HOST
|
- name: AFFINE_SERVER_HTTPS
|
||||||
value: "{{ .Values.app.https }}"
|
value: "{{ .Values.app.https }}"
|
||||||
- name: ENABLE_R2_OBJECT_STORAGE
|
- name: ENABLE_R2_OBJECT_STORAGE
|
||||||
value: "{{ .Values.app.objectStorage.r2.enabled }}"
|
value: "{{ .Values.app.objectStorage.r2.enabled }}"
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ export const FunctionalityModules: Array<Type | DynamicModule> = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
imports: [...FunctionalityModules, ...BusinessModules],
|
imports: [...FunctionalityModules, ...BusinessModules],
|
||||||
controllers: [AppController],
|
controllers:
|
||||||
|
process.env.SERVER_FLAVOR === 'selfhosted' ? [] : [AppController],
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|||||||
@@ -10,6 +10,13 @@ declare global {
|
|||||||
// eslint-disable-next-line no-var
|
// eslint-disable-next-line no-var
|
||||||
var AFFiNE: AFFiNEConfig;
|
var AFFiNE: AFFiNEConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||||
|
namespace NodeJS {
|
||||||
|
interface ProcessEnv {
|
||||||
|
SERVER_FLAVOR: ServerFlavor | '';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum ExternalAccount {
|
export enum ExternalAccount {
|
||||||
|
|||||||
Reference in New Issue
Block a user