proxy.prod

This commit is contained in:
Ben 2023-08-03 16:43:55 -04:00
parent 8c51c86ff1
commit 6a865b0827
4 changed files with 15 additions and 3 deletions

View File

@ -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",

11
proxy.config.prod.json Normal file
View File

@ -0,0 +1,11 @@
{
"/api/*": {
"target": "http://public-pool.airdns.org:40557",
"secure": false,
"logLevel": "debug",
"pathRewrite": {
"^/api": ""
},
"changeOrigin": true
}
}

View File

@ -4,7 +4,7 @@
<div class="card mb-4">
<div class="flex justify-content-between mb-3">
<div>
<span class="block text-500 font-medium mb-3">Best Difficulty</span>
<span class="block text-500 font-medium mb-3">Best Difficulty (All-Time)</span>
<div class="text-900 font-medium text-xl">{{clientInfo.bestDifficulty | numberSuffix}}
</div>
</div>
@ -29,7 +29,7 @@
<th>Name</th>
<th>Session ID</th>
<th>Hash Rate</th>
<th>Best Difficulty</th>
<th>Best Difficulty (Session)</th>
<th>Uptime</th>
</tr>
</ng-template>

View File

@ -1,4 +1,4 @@
export const environment = {
production: false,
API_URL: 'http://localhost:3334'
API_URL: '/api'
};