3 Commits

4 changed files with 20 additions and 6396 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,2 @@
tesseract-genconf
roots.pem
*roots.pem

File diff suppressed because it is too large Load Diff

View File

@@ -35,6 +35,10 @@ func generateEnv(yamlFile string, wantDiff bool, allowWrite bool, useColor bool)
fmt.Sprintf("--origin=%s", logEntry.Origin),
fmt.Sprintf("--storage_dir=%s", logEntry.LocalDirectory),
fmt.Sprintf("--roots_pem_file=%s", rootsPemPath),
"--batch_max_size=512",
"--batch_max_age=500ms",
"--pushback_max_outstanding=4096",
"--pushback_max_dedupe_in_flight=250",
}
// Add http_endpoint if Listen is specified

View File

@@ -23,48 +23,48 @@ const nginxTemplate = `server {
location = / {
try_files /index.html =404;
add_header Content-Type "text/html; charset=utf-8" always;
add_header Access-Control-Allow-Origin "*" always;
add_header Content-Type "text/html; charset=utf-8";
add_header Access-Control-Allow-Origin "*";
}
# Checkpoint endpoint - no caching
location = /checkpoint {
try_files /checkpoint =404;
add_header Content-Type "text/plain; charset=utf-8" always;
add_header Access-Control-Allow-Origin "*" always;
add_header Cache-Control "no-store" always;
add_header Content-Type "text/plain; charset=utf-8";
add_header Access-Control-Allow-Origin "*";
add_header Cache-Control "no-store";
}
# Log info endpoint
location = /log.v3.json {
try_files /log.v3.json =404;
add_header Content-Type "application/json" always;
add_header Access-Control-Allow-Origin "*" always;
add_header Cache-Control "public, max-age=3600, immutable" always;
add_header Content-Type "application/json";
add_header Access-Control-Allow-Origin "*";
add_header Cache-Control "public, max-age=3600, immutable";
}
# Issuer certificate endpoint - long cache
location ~ ^/issuer/(.+)$ {
try_files /issuer/$1 =404;
add_header Content-Type "application/pkix-cert" always;
add_header Access-Control-Allow-Origin "*" always;
add_header Cache-Control "public, max-age=604800, immutable" always;
add_header Content-Type "application/pkix-cert";
add_header Access-Control-Allow-Origin "*";
add_header Cache-Control "public, max-age=604800, immutable";
}
# Tile data endpoint - long cache, may have gzip
location ~ ^/tile/(.+)$ {
try_files /tile/$1 =404;
add_header Content-Type "application/octet-stream" always;
add_header Access-Control-Allow-Origin "*" always;
add_header Cache-Control "public, max-age=604800, immutable" always;
add_header Content-Type "application/octet-stream";
add_header Access-Control-Allow-Origin "*";
add_header Cache-Control "public, max-age=604800, immutable";
# Gzip encoding for .gz files
location ~ \.gz$ {
add_header Content-Encoding "gzip" always;
add_header Content-Encoding "gzip";
}
}
}