mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-12-11 13:11:03 +01:00
TLS
This commit is contained in:
@@ -33,12 +33,12 @@
|
|||||||
<div class="info mb-2 p-4 border-dashed border-1 border-round">
|
<div class="info mb-2 p-4 border-dashed border-1 border-round">
|
||||||
<code>stratum+tcp://{{stratumURL}}</code>
|
<code>stratum+tcp://{{stratumURL}}</code>
|
||||||
<br>
|
<br>
|
||||||
|
<code>stratum+tls://{{secureStratumURL}}</code>
|
||||||
|
<br>
|
||||||
<code>username: <your BTC address>.<worker name>, password: x</code>
|
<code>username: <your BTC address>.<worker name>, password: x</code>
|
||||||
</div>
|
</div>
|
||||||
<span><b>NO FEES</b></span>
|
<span><b>NO FEES</b></span>
|
||||||
<br>
|
<br>
|
||||||
<span><b>PLUS AFFILIATE REWARDS</b></span>
|
|
||||||
<br>
|
|
||||||
<span>No second best.</span>
|
<span>No second best.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -133,9 +133,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h4 style="text-align: center;">Affiliate Program</h4>
|
<h4 style="text-align: center;">Affiliate Program</h4>
|
||||||
<p>Purchase products through the affiliate links below to enjoy discounts on mining hardware. Every
|
<p>Purchase products through the affiliate links below to enjoy discounts on mining hardware.</p>
|
||||||
month, the miner who submits the highest difficulty will be rewarded with 100% of the affiliate
|
|
||||||
earnings.</p>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="grid" style="padding-top: 20px;">
|
<div class="grid" style="padding-top: 20px;">
|
||||||
|
|||||||
@@ -27,10 +27,11 @@ export class SplashComponent {
|
|||||||
public chartOptions: any;
|
public chartOptions: any;
|
||||||
|
|
||||||
public stratumURL = '';
|
public stratumURL = '';
|
||||||
|
public secureStratumURL = '';
|
||||||
|
|
||||||
private info$: Observable<any>;
|
private info$: Observable<any>;
|
||||||
|
|
||||||
private networkInfo:any;
|
private networkInfo: any;
|
||||||
|
|
||||||
constructor(private appService: AppService, private cdr: ChangeDetectorRef) {
|
constructor(private appService: AppService, private cdr: ChangeDetectorRef) {
|
||||||
|
|
||||||
@@ -42,6 +43,12 @@ export class SplashComponent {
|
|||||||
this.stratumURL = window.location.hostname + ':3333';
|
this.stratumURL = window.location.hostname + ':3333';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (environment.SECURE_STRATUM_URL.length > 1) {
|
||||||
|
this.secureStratumURL = environment.SECURE_STRATUM_URL;
|
||||||
|
} else {
|
||||||
|
this.secureStratumURL = window.location.hostname + ':4333';
|
||||||
|
}
|
||||||
|
|
||||||
this.blockData$ = this.info$.pipe(map(info => info.blockData));
|
this.blockData$ = this.info$.pipe(map(info => info.blockData));
|
||||||
this.userAgents$ = this.info$.pipe(map(info => info.userAgents));
|
this.userAgents$ = this.info$.pipe(map(info => info.userAgents));
|
||||||
this.highScores$ = this.info$.pipe(map(info => info.highScores));
|
this.highScores$ = this.info$.pipe(map(info => info.highScores));
|
||||||
@@ -107,7 +114,7 @@ export class SplashComponent {
|
|||||||
ticks: {
|
ticks: {
|
||||||
color: textColorSecondary,
|
color: textColorSecondary,
|
||||||
callback: (value: number) => {
|
callback: (value: number) => {
|
||||||
return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty);
|
return HashSuffixPipe.transform(value) + " - " + AverageTimeToBlockPipe.transform(value, this.networkInfo.difficulty);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: true,
|
production: true,
|
||||||
API_URL: 'https://public-pool.io:40557',
|
API_URL: 'https://public-pool.io:40557',
|
||||||
STRATUM_URL: 'public-pool.io:21496'
|
STRATUM_URL: 'public-pool.io:3333',
|
||||||
|
SECURE_STRATUM_URL: 'public-pool.io:4333',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
API_URL: 'http://localhost:3334',
|
API_URL: 'http://localhost:3334',
|
||||||
STRATUM_URL: 'public-pool.io:21496'
|
STRATUM_URL: 'public-pool.io:3333',
|
||||||
|
SECURE_STRATUM_URL: 'public-pool.io:4333',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user