mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-03-17 21:32:54 +01:00
proxy.prod
This commit is contained in:
parent
8c51c86ff1
commit
6a865b0827
@ -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
11
proxy.config.prod.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"/api/*": {
|
||||
"target": "http://public-pool.airdns.org:40557",
|
||||
"secure": false,
|
||||
"logLevel": "debug",
|
||||
"pathRewrite": {
|
||||
"^/api": ""
|
||||
},
|
||||
"changeOrigin": true
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
@ -1,4 +1,4 @@
|
||||
export const environment = {
|
||||
production: false,
|
||||
API_URL: 'http://localhost:3334'
|
||||
API_URL: '/api'
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user