mirror of
https://github.com/seigler/dash-website
synced 2025-07-26 23:06:09 +00:00
bugfix - repair mixed-content ssl warnings -- self-host non-ssl image
This commit is contained in:
parent
703a0f3762
commit
6f5b9fb528
4 changed files with 22 additions and 2 deletions
BIN
assets/img/masternode_count-crop-813x525.png
Normal file
BIN
assets/img/masternode_count-crop-813x525.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
|
@ -265,7 +265,7 @@ description: pages.home.description
|
||||||
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
|
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
|
||||||
</div-->
|
</div-->
|
||||||
<div class="col-sm-6 home-network-graphic-live">
|
<div class="col-sm-6 home-network-graphic-live">
|
||||||
<img src="http://178.254.23.111/~pub/masternode_count.png" alt="{% t pages.home.network-growth-heading %}">
|
<img src="/assets/img/masternode_count-crop-813x525.png" alt="{% t pages.home.network-growth-heading %}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -67,7 +67,7 @@ description: pages.currency.description
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<p>
|
<p>
|
||||||
<img src="http://178.254.23.111/~pub/masternode_count.png" width="100%">
|
<img src="/assets/img/masternode_count-crop-813x525.png" width="100%">
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
20
script/cron-refresh_masternode_count_image.sh
Executable file
20
script/cron-refresh_masternode_count_image.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# cron-refresh_masternode_count_image.sh
|
||||||
|
# pulls, resizes, and places an image from service that hasn't installed ssl
|
||||||
|
# self-hosting the content avoids mixed-content/insecure browser warnings
|
||||||
|
|
||||||
|
# source image is updated once an hour.
|
||||||
|
# production crontab config. check every 10 past so it's reasonably fresh
|
||||||
|
#
|
||||||
|
# 10 * * * * /home/ubuntu/build/dash-website/script/cron-refresh_masternode_count_image.sh
|
||||||
|
#
|
||||||
|
|
||||||
|
FILEPATH=/tmp/masternode_count.png
|
||||||
|
rm -f $FILEPATH
|
||||||
|
wget -q http://178.254.23.111/~pub/masternode_count.png -O $FILEPATH
|
||||||
|
|
||||||
|
if [[ -e $FILEPATH ]]; then
|
||||||
|
convert /tmp/masternode_count.png -crop 813x525+6+6 /tmp/masternode_count-crop-813x525.png
|
||||||
|
cp -f /tmp/masternode_count-crop-813x525.png /home/ubuntu/broadcast/assets/img/masternode_count-crop-813x525.png
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue