mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-07-06 05:10:33 +02:00
proxy.prod
This commit is contained in:
@ -4,6 +4,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve --proxy-config proxy.config.local.json ",
|
"start": "ng serve --proxy-config proxy.config.local.json ",
|
||||||
|
"start:prod": "ng serve --proxy-config proxy.config.prod.json ",
|
||||||
"build": "ng build --configuration=production",
|
"build": "ng build --configuration=production",
|
||||||
"watch": "ng build --watch --configuration development",
|
"watch": "ng build --watch --configuration development",
|
||||||
"test": "ng test",
|
"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="card mb-4">
|
||||||
<div class="flex justify-content-between mb-3">
|
<div class="flex justify-content-between mb-3">
|
||||||
<div>
|
<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 class="text-900 font-medium text-xl">{{clientInfo.bestDifficulty | numberSuffix}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Session ID</th>
|
<th>Session ID</th>
|
||||||
<th>Hash Rate</th>
|
<th>Hash Rate</th>
|
||||||
<th>Best Difficulty</th>
|
<th>Best Difficulty (Session)</th>
|
||||||
<th>Uptime</th>
|
<th>Uptime</th>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
API_URL: 'http://localhost:3334'
|
API_URL: '/api'
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user