Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _maintenance_update_graph_data.sh.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -eu

outFile="$(dirname "$0")/js/cert-timeline.tsv"
outFile="$(dirname "$0")/js/cert-daily-stats.tsv"

# Download to a temp file, then move over-top the original, so that the update is
# atomic from the perspective of the webserver
curl --silent https://ct.tacticalsecret.com/cert-timeline.tsv > "${outFile}.bak"
curl --silent https://ct.tacticalsecret.com/cert-daily-stats.tsv > "${outFile}.bak"
Comment thread
lenaunderwood22 marked this conversation as resolved.
mv "${outFile}.bak" "${outFile}"
3 changes: 2 additions & 1 deletion config/_default/server.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Permissions-Policy = """
fullscreen=(self),
interest-cohort=()
"""
# "connect-src https://d4twhgtvn0ff5.cloudfront.net/" for stats graphs
# "connect-src https://d4twhgtvn0ff5.cloudfront.net/ and https://d1dfn7jg27m4cf.cloudfront.net/" for stats graphs
# "img-src data: blob:" is for Plotly download feature
# "script-src unsafe-eval unsafe-inline data:": For Google Analytics
# "form-action" is NOT set, so it allows everything (it doesn't default to default-src). If restricted, It must allow at least www.paypal.com and its redirects
Expand Down Expand Up @@ -79,6 +79,7 @@ Content-Security-Policy = """
;
connect-src 'self'
https://d4twhgtvn0ff5.cloudfront.net/
https://d1dfn7jg27m4cf.cloudfront.net/
https://donorbox.org
https://doublethedonation.com
https://letsencrypt-merch.myshopify.com
Expand Down
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Permissions-Policy = """
fullscreen=(self),
interest-cohort=()
"""
# "connect-src https://d4twhgtvn0ff5.cloudfront.net/" for stats graphs
# "connect-src https://d4twhgtvn0ff5.cloudfront.net/ and https://d1dfn7jg27m4cf.cloudfront.net/" for stats graphs
# "img-src data: blob:" is for Plotly download feature
# "script-src unsafe-eval unsafe-inline data:": For Google Analytics
# "form-action" is NOT set, so it allows everything (it doesn't default to default-src). If restricted, It must allow at least www.paypal.com and its redirects
Expand Down Expand Up @@ -89,6 +89,7 @@ Content-Security-Policy = """
;
connect-src 'self'
https://d4twhgtvn0ff5.cloudfront.net/
https://d1dfn7jg27m4cf.cloudfront.net/
https://donorbox.org
https://doublethedonation.com
https://letsencrypt-merch.myshopify.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
date certs_issued certs_active fqdns_active reg_domains_active
2015-10-08 2 2 1 1
2015-10-09 4 6 5 2
2015-10-10 1 7 6 2
Expand Down
13 changes: 10 additions & 3 deletions static/js/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,20 @@ function doPlot() {
}

var path;
if ( location.hostname === "letsencrypt.org" ) {
if ( location.hostname === "localhost" ) {
path = "/js/"; // in dev, will use old data.
} else {
path = "https://d4twhgtvn0ff5.cloudfront.net/";
}
Comment thread
lenaunderwood22 marked this conversation as resolved.

var statsPath;
if ( location.hostname === "localhost" ) {
statsPath = "/js/"; // in dev, will use old data.
} else {
path = "/js/"; // in dev, will use old data.
statsPath = "https://d1dfn7jg27m4cf.cloudfront.net/";
}

fetch(path+"cert-timeline.tsv")
fetch(statsPath+"cert-daily-stats.tsv")
.then(response => {
return response.text();
}).then(tsvListener);
Expand Down
Loading