Configure nginx ingress and routing
This commit is contained in:
@@ -6,7 +6,7 @@ WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm ci && npm run build
|
||||
RUN npm ci && npm run build -- --configuration=production
|
||||
|
||||
# Stage 2
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import {environment} from '../../environments/environment';
|
||||
|
||||
@Injectable()
|
||||
export class RestService {
|
||||
private currentLocation = 'http://' + environment.location + ':' + environment.port + '/api/v1/resources/';
|
||||
private currentLocation = environment.location + '/api/v1/resources/';
|
||||
|
||||
constructor(
|
||||
private logger: NGXLogger,
|
||||
|
||||
@@ -2,7 +2,6 @@ import {NgxLoggerLevel} from 'ngx-logger';
|
||||
|
||||
export const environment = {
|
||||
production: true,
|
||||
location: 'xway',
|
||||
port: 5004,
|
||||
location: '/xway',
|
||||
log_level: NgxLoggerLevel.WARN,
|
||||
};
|
||||
|
||||
@@ -6,8 +6,7 @@ import {NgxLoggerLevel} from 'ngx-logger';
|
||||
|
||||
export const environment = {
|
||||
production: false,
|
||||
location: 'xway',
|
||||
port: 5004,
|
||||
location: 'http://xway:5004',
|
||||
log_level: NgxLoggerLevel.DEBUG,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user