From b0059128b3a848448b39e630012e3ad5ea189e99 Mon Sep 17 00:00:00 2001 From: Fesaa <77553571+Fesaa@users.noreply.github.com> Date: Sun, 3 Aug 2025 21:07:35 +0200 Subject: [PATCH] [skip ci] Revert proxy stuff in the UI (#3977) --- UI/Web/angular.json | 6 ++--- UI/Web/proxy.conf.json | 37 -------------------------- UI/Web/src/environments/environment.ts | 4 +-- 3 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 UI/Web/proxy.conf.json diff --git a/UI/Web/angular.json b/UI/Web/angular.json index bf6818f68..07526c667 100644 --- a/UI/Web/angular.json +++ b/UI/Web/angular.json @@ -14,7 +14,8 @@ "schematics": { "@schematics/angular:component": { "style": "scss", - "changeDetection": "OnPush" + "changeDetection": "OnPush", + "skipTests": true }, "@schematics/angular:application": { "strict": true @@ -99,8 +100,7 @@ "sslKey": "./ssl/server.key", "sslCert": "./ssl/server.crt", "ssl": false, - "buildTarget": "kavita-webui:build", - "proxyConfig": "proxy.conf.json" + "buildTarget": "kavita-webui:build" }, "configurations": { "production": { diff --git a/UI/Web/proxy.conf.json b/UI/Web/proxy.conf.json deleted file mode 100644 index b2ca6d221..000000000 --- a/UI/Web/proxy.conf.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "/api": { - "target": "http://localhost:5000", - "secure": false, - "changeOrigin": true, - "logLevel": "debug" - }, - "/hubs": { - "target": "http://localhost:5000", - "secure": false, - "changeOrigin": true, - "logLevel": "debug", - "ws": true - }, - "/oidc/login": { - "target": "http://localhost:5000", - "secure": false, - "changeOrigin": true, - "logLevel": "debug" - }, - "/oidc/logout": { - "target": "http://localhost:5000", - "secure": false, - "changeOrigin": true, - "logLevel": "debug" - }, - "/signin-oidc": { - "target": "http://localhost:5000", - "secure": false, - "changeOrigin": true - }, - "/signout-callback-oidc": { - "target": "http://localhost:5000", - "secure": false, - "changeOrigin": true - } -} diff --git a/UI/Web/src/environments/environment.ts b/UI/Web/src/environments/environment.ts index 0bb5c7ab1..b86267283 100644 --- a/UI/Web/src/environments/environment.ts +++ b/UI/Web/src/environments/environment.ts @@ -6,8 +6,8 @@ const IP = 'localhost'; export const environment = { production: false, - apiUrl: 'http://' + IP + ':4200/api/', - hubUrl: 'http://'+ IP + ':4200/hubs/', + apiUrl: 'http://' + IP + ':5000/api/', + hubUrl: 'http://'+ IP + ':5000/hubs/', buyLink: 'https://buy.stripe.com/test_9AQ5mi058h1PcIo3cf?prefilled_promo_code=FREETRIAL', manageLink: 'https://billing.stripe.com/p/login/test_14kfZocuh6Tz5ag7ss' };