Skip to content
Merged
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
10 changes: 2 additions & 8 deletions docs/validators/admin-guide/publishing-history-archives.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ server {

server_name history.example.com;

# default is to deny all
location / { deny all; }

# do not cache 404 errors
error_page 404 /404.html;
location = /404.html {
Expand All @@ -70,13 +67,13 @@ server {
# do not cache history state file
location ~ ^/.well-known/stellar-history.json$ {
add_header Cache-Control "no-cache" always;
try_files $uri;
try_files $uri =404;
}

# cache entire history archive for 1 day
location / {
add_header Cache-Control "max-age=86400";
try_files $uri;
try_files $uri =404;
}
}
```
Expand Down Expand Up @@ -117,9 +114,6 @@ server {
# bucket.name s3 static site endpoint
set $s3_bucket "bucket.name.s3-website-us-east-1.amazonaws.com";

# default is to deny all
location / { deny all; }

# do not cache 404 errors
error_page 404 /404.html;
location = /404.html {
Expand Down