diff --git a/nginx.conf b/nginx.conf index 022d2d4..386482f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -19,11 +19,11 @@ server { try_files $uri $uri/ /index.html =404; } - # location /api/ { - # proxy_pass http://dockerprod2.icssophia.local:24600/; - # proxy_set_header Host $host; - # proxy_set_header X-Real-IP $remote_addr; - # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - # proxy_set_header X-Forwarded-Proto $scheme; - # } + location /api/ { + proxy_pass http://devhost.bertom.lan:6081/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } } \ No newline at end of file diff --git a/src/app/video-processing.service.ts b/src/app/video-processing.service.ts index e6333aa..2d1d7f4 100644 --- a/src/app/video-processing.service.ts +++ b/src/app/video-processing.service.ts @@ -6,7 +6,7 @@ import { Observable } from 'rxjs'; providedIn: 'root' }) export class VideoProcessingService { - private apiUrl = 'http://localhost:3000'; + private apiUrl = '/api'; constructor(private http: HttpClient) { }