Skip to content

Commit 6fa2a6e

Browse files
authored
Fixed nginx config to pass .well-known to Ghost by default (#1971)
We were passing anything matching /.well-known to Nginx, causing 404s for /ghost/.well-known/jwks.json and /.well-known/recommendations.json I believe the only use for this was /.well-known/acme-challenge, so I've increased the specificity and only left this block in-tact for the HTTP(80) config file.
1 parent c81fb0e commit 6fa2a6e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

extensions/nginx/templates/nginx-ssl.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,5 @@ server {
4444
add_header X-Content-Type-Options $header_content_type_options;
4545
}
4646

47-
location ~ /.well-known {
48-
allow all;
49-
}
50-
5147
client_max_body_size 1g;
5248
}

extensions/nginx/templates/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ server {
4040
add_header X-Content-Type-Options $header_content_type_options;
4141
}
4242

43-
location ~ /.well-known {
43+
location ~ ^/.well-known/acme-challenge {
4444
allow all;
4545
}
4646

0 commit comments

Comments
 (0)