Update application port to 3660 to match server configuration
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Server Port | منفذ الخادم
|
||||
PORT=3001
|
||||
PORT=3660
|
||||
|
||||
# Environment | بيئة العمل (development, production)
|
||||
NODE_ENV=development
|
||||
|
||||
@@ -30,7 +30,7 @@ RUN npm install --only=production
|
||||
COPY --from=builder /usr/src/app/dist ./dist
|
||||
|
||||
# Expose port | فتح المنفذ
|
||||
EXPOSE 3001
|
||||
EXPOSE 3660
|
||||
|
||||
# Command to run | أمر التشغيل
|
||||
CMD ["node", "dist/main"]
|
||||
|
||||
@@ -5,7 +5,7 @@ services:
|
||||
build: .
|
||||
container_name: ads-analytics-api
|
||||
ports:
|
||||
- "${PORT:-3001}:3001"
|
||||
- "${PORT:-3660}:3660"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
|
||||
@@ -29,7 +29,7 @@ async function bootstrap() {
|
||||
|
||||
// Get ConfigService for port | الحصول على خدمة الإعدادات للمنفذ
|
||||
const configService = app.get(ConfigService);
|
||||
const port = configService.get<number>('PORT') || 3001;
|
||||
const port = configService.get<number>('PORT') || 3660;
|
||||
|
||||
// Security | الحماية
|
||||
// Helmet adds various HTTP headers to protect the app
|
||||
|
||||
Reference in New Issue
Block a user