feat(web,server): external domain setting (#6146)

* feat: external domain setting

* chore: open api

* mobile: handle serverconfig-externalDomain

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
Jason Rasmussen
2024-01-03 21:54:48 -05:00
committed by GitHub
parent 1e503c3212
commit 317adc5c28
35 changed files with 433 additions and 23 deletions
@@ -86,6 +86,7 @@ export class ServerConfigDto {
@ApiProperty({ type: 'integer' })
trashDays!: number;
isInitialized!: boolean;
externalDomain!: string;
}
export class ServerFeaturesDto implements FeatureFlags {
@@ -184,6 +184,7 @@ describe(ServerInfoService.name, () => {
loginPageMessage: '',
oauthButtonText: 'Login with OAuth',
trashDays: 30,
externalDomain: '',
});
expect(configMock.load).toHaveBeenCalled();
});
@@ -89,6 +89,7 @@ export class ServerInfoService {
trashDays: config.trash.days,
oauthButtonText: config.oauth.buttonText,
isInitialized,
externalDomain: config.server.externalDomain,
};
}