diff --git a/package.json b/package.json index fb59ce6..ec29ac6 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "scripts": { "ng": "ng", "start": "ng serve --proxy-config proxy.config.local.json ", + "start:prod": "ng serve --proxy-config proxy.config.prod.json ", "build": "ng build --configuration=production", "watch": "ng build --watch --configuration development", "test": "ng test", diff --git a/proxy.config.prod.json b/proxy.config.prod.json new file mode 100644 index 0000000..624f74c --- /dev/null +++ b/proxy.config.prod.json @@ -0,0 +1,11 @@ +{ + "/api/*": { + "target": "http://public-pool.airdns.org:40557", + "secure": false, + "logLevel": "debug", + "pathRewrite": { + "^/api": "" + }, + "changeOrigin": true + } +} \ No newline at end of file diff --git a/src/app/components/dashboard/dashboard.component.html b/src/app/components/dashboard/dashboard.component.html index 8b8a1fc..baa5bb6 100644 --- a/src/app/components/dashboard/dashboard.component.html +++ b/src/app/components/dashboard/dashboard.component.html @@ -4,7 +4,7 @@
- Best Difficulty + Best Difficulty (All-Time)
{{clientInfo.bestDifficulty | numberSuffix}}
@@ -29,7 +29,7 @@ Name Session ID Hash Rate - Best Difficulty + Best Difficulty (Session) Uptime diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 4a34310..073d833 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,4 +1,4 @@ export const environment = { production: false, - API_URL: 'http://localhost:3334' + API_URL: '/api' };