Configure nginx ingress and routing

This commit is contained in:
2021-06-16 22:21:15 +02:00
parent 391683831f
commit 4d30f79900
7 changed files with 27 additions and 15 deletions
+1 -1
View File
@@ -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,
};