Skip to content

Commit

Permalink
hot update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitiwat-owen committed Nov 10, 2023
1 parent 5c397a6 commit 761a298
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ AUTH_GRPC_PORT="YOUR_AUTH_GRPC_PORT"
USER_GRPC_PORT="YOUR_USER_GRPC_PORT"
USER_REST_PORT="YOUT_USER_REST_PORT"

FILE_GRPC_URL="YOUR_FILE_GRPC_URL"
FILE_GRPC_URL="YOUR_FILE_GRPC_URL"
EMAIL_SERVICE_RMQ="YOUR_EMAIL_SERVICE_RMQ"
EMAIL_QUEUE="YOUR_EMAIL_QUEUE"
7 changes: 4 additions & 3 deletions src/auth/auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { JwtModule, JwtService } from '@nestjs/jwt';

Check warning on line 6 in src/auth/auth.module.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

'JwtService' is defined but never used

Check warning on line 6 in src/auth/auth.module.ts

View workflow job for this annotation

GitHub Actions / test (18.x)

'JwtService' is defined but never used
import { AccessTokenStrategy } from './strategies/accessToken.strategy';
import { ConfigService } from '@nestjs/config';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { BlacklistRepository } from 'src/repository/blacklist.repository';

import { SportAreaListRepository } from 'src/repository/sportAreaList.repository';
Expand All @@ -17,13 +17,14 @@ import { FileModule } from '../file/file.module';
imports: [
PrismaModule,
JwtModule.register({}),
ConfigModule.forRoot(),
ClientsModule.register([
{
name: 'EMAIL_SERVICE',
transport: Transport.RMQ,
options: {
urls: ['amqp://localhost:5672'],
queue: 'email_queue',
urls: [process.env.EMAIL_SERVICE_RMQ],
queue: process.env.EMAIL_QUEUE,
queueOptions: {
durable: false,
},
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function bootstrap() {
package: 'user',
protoPath: join(__dirname, 'proto/user.proto'),
url: `0.0.0.0:${
process.env.USER_GRPC_PORT ? parseInt(process.env.USER_GRPC_PORT) : 8081
process.env.USER_GRPC_PORT ? parseInt(process.env.USER_GRPC_PORT) : 8087
}`,
},
};
Expand Down

0 comments on commit 761a298

Please sign in to comment.