Compare commits
3 Commits
105a245239
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
1e7a41660f | ||
|
b646bca642 | ||
|
425b485f5f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
tesseract-genconf
|
||||
roots.pem
|
||||
*roots.pem
|
||||
|
6380
production-roots.pem
6380
production-roots.pem
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user