forked from mirror/misskey
4735ae6451
* wip?
* clean up
* Implement? HttpFetchService
* ✌️
* remove node-fetch
* fix
* refactor
* fix
* gateway timeout
* UndiciFetcherクラスを追加 (仮コミット, ビルドもstartもさせていない)
* fix
* add logger and fix url preview
* fix ip check
* enhance logger and error handling
* fix
* fix
* clean up
* Use custom fetcher for ApRequest / ApResolver
* bypassProxyはproxyBypassHostsに判断を委譲するように
* set maxRedirections (default 3, ApRequest/ApResolver: 0)
* fix
* wip????
* wip
* ✌️
* set .node-version
* clean up
* refactor
* clean up
* refactor
* refactor detectRequestType
* rename detectResponseType
* ✌️
* fix
* wip
* clean up
* no got
* remove got
* wip
* ✌️
* fix
* clean up
* remove unnnecessary const
* good cleanup
* no stream
* Revert "no stream"
This reverts commit 636f9192fc
.
* fix
* cache-control: max-age=300 to error
* refactor cleanup
91 lines
3.7 KiB
TypeScript
91 lines
3.7 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { EndpointsModule } from '@/server/api/EndpointsModule.js';
|
|
import { CoreModule } from '@/core/CoreModule.js';
|
|
import { ApiCallService } from './api/ApiCallService.js';
|
|
import { FileServerService } from './FileServerService.js';
|
|
import { NodeinfoServerService } from './NodeinfoServerService.js';
|
|
import { ServerService } from './ServerService.js';
|
|
import { WellKnownServerService } from './WellKnownServerService.js';
|
|
import { GetterService } from './api/GetterService.js';
|
|
import { DiscordServerService } from './api/integration/DiscordServerService.js';
|
|
import { GithubServerService } from './api/integration/GithubServerService.js';
|
|
import { TwitterServerService } from './api/integration/TwitterServerService.js';
|
|
import { ChannelsService } from './api/stream/ChannelsService.js';
|
|
import { ActivityPubServerService } from './ActivityPubServerService.js';
|
|
import { ApiLoggerService } from './api/ApiLoggerService.js';
|
|
import { ApiServerService } from './api/ApiServerService.js';
|
|
import { AuthenticateService } from './api/AuthenticateService.js';
|
|
import { RateLimiterService } from './api/RateLimiterService.js';
|
|
import { SigninApiService } from './api/SigninApiService.js';
|
|
import { SigninService } from './api/SigninService.js';
|
|
import { SignupApiService } from './api/SignupApiService.js';
|
|
import { StreamingApiServerService } from './api/StreamingApiServerService.js';
|
|
import { ClientServerService } from './web/ClientServerService.js';
|
|
import { FeedService } from './web/FeedService.js';
|
|
import { UrlPreviewService } from './web/UrlPreviewService.js';
|
|
import { MainChannelService } from './api/stream/channels/main.js';
|
|
import { AdminChannelService } from './api/stream/channels/admin.js';
|
|
import { AntennaChannelService } from './api/stream/channels/antenna.js';
|
|
import { ChannelChannelService } from './api/stream/channels/channel.js';
|
|
import { DriveChannelService } from './api/stream/channels/drive.js';
|
|
import { GlobalTimelineChannelService } from './api/stream/channels/global-timeline.js';
|
|
import { HashtagChannelService } from './api/stream/channels/hashtag.js';
|
|
import { HomeTimelineChannelService } from './api/stream/channels/home-timeline.js';
|
|
import { HybridTimelineChannelService } from './api/stream/channels/hybrid-timeline.js';
|
|
import { LocalTimelineChannelService } from './api/stream/channels/local-timeline.js';
|
|
import { MessagingIndexChannelService } from './api/stream/channels/messaging-index.js';
|
|
import { MessagingChannelService } from './api/stream/channels/messaging.js';
|
|
import { QueueStatsChannelService } from './api/stream/channels/queue-stats.js';
|
|
import { ServerStatsChannelService } from './api/stream/channels/server-stats.js';
|
|
import { UserListChannelService } from './api/stream/channels/user-list.js';
|
|
|
|
@Module({
|
|
imports: [
|
|
EndpointsModule,
|
|
CoreModule,
|
|
],
|
|
providers: [
|
|
ClientServerService,
|
|
FeedService,
|
|
UrlPreviewService,
|
|
ActivityPubServerService,
|
|
FileServerService,
|
|
NodeinfoServerService,
|
|
ServerService,
|
|
WellKnownServerService,
|
|
GetterService,
|
|
DiscordServerService,
|
|
GithubServerService,
|
|
TwitterServerService,
|
|
ChannelsService,
|
|
ApiCallService,
|
|
ApiLoggerService,
|
|
ApiServerService,
|
|
AuthenticateService,
|
|
RateLimiterService,
|
|
SigninApiService,
|
|
SigninService,
|
|
SignupApiService,
|
|
StreamingApiServerService,
|
|
MainChannelService,
|
|
AdminChannelService,
|
|
AntennaChannelService,
|
|
ChannelChannelService,
|
|
DriveChannelService,
|
|
GlobalTimelineChannelService,
|
|
HashtagChannelService,
|
|
HomeTimelineChannelService,
|
|
HybridTimelineChannelService,
|
|
LocalTimelineChannelService,
|
|
MessagingIndexChannelService,
|
|
MessagingChannelService,
|
|
QueueStatsChannelService,
|
|
ServerStatsChannelService,
|
|
UserListChannelService,
|
|
],
|
|
exports: [
|
|
ServerService,
|
|
],
|
|
})
|
|
export class ServerModule {}
|