add .env.example
This commit is contained in:
		
							parent
							
								
									0cb2f6797b
								
							
						
					
					
						commit
						57a41e30b6
					
				
							
								
								
									
										18
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,18 @@ | |||||||
|  | # POSTGRES | ||||||
|  | POSTGRES_USER=prisma | ||||||
|  | POSTGRES_PASSWORD=topsecret | ||||||
|  | POSTGRES_DB=blog | ||||||
|  | 
 | ||||||
|  | DB_HOST=localhost | ||||||
|  | DB_SCHEMA=public | ||||||
|  | 
 | ||||||
|  | # Prisma database connection | ||||||
|  | DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DB_HOST}:${DB_PORT}/${POSTGRES_DB}?schema=${DB_SCHEMA}&sslmode=prefer | ||||||
|  | 
 | ||||||
|  | # Nest | ||||||
|  | PORT=12400 | ||||||
|  | 
 | ||||||
|  | # Security | ||||||
|  | JWT_ACCESS_SECRET=JWT_ACCESS_SECRET | ||||||
|  | JWT_REFRESH_SECRET=JWT_REFRESH_SECRET | ||||||
|  | SALT=1 | ||||||
| @ -5,7 +5,7 @@ import { ApiTags } from '@nestjs/swagger' | |||||||
| import { LoginInputDto } from './dto/login-input.dto' | import { LoginInputDto } from './dto/login-input.dto' | ||||||
| import { UserEntity } from 'src/users/entities/user.entity' | import { UserEntity } from 'src/users/entities/user.entity' | ||||||
| import { User } from 'src/common/decorators/user.decorator' | import { User } from 'src/common/decorators/user.decorator' | ||||||
| import { NeedAuth } from 'src/common/decorators/auth.decorator' | import { NeedAuth } from 'src/common/decorators/need-auth.decorator' | ||||||
| 
 | 
 | ||||||
| @ApiTags('auth') | @ApiTags('auth') | ||||||
| @Controller() | @Controller() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user