mempool: 2.5.0 -> 3.2.1

This commit is contained in:
Erik Arvstedt 2025-06-01 23:03:32 +02:00
parent 9a044fbfed
commit 81112a0553
No known key found for this signature in database
GPG key ID: 33312B944DD97846
9 changed files with 119 additions and 20 deletions

View file

@ -1,3 +1,6 @@
# Settings adapted from
# https://github.com/mempool/mempool/blob/v3.2.1/production/nginx/server-common.conf
# see order of nginx location rules
# https://stackoverflow.com/questions/5238377/nginx-location-priority
@ -12,7 +15,7 @@ location = / {
}
# cache /<lang>/main.f40e91d908a068a2.js forever since they never change
location ~ ^/([a-z][a-z])/(.+\..+\.(js|css)) {
location ~ ^/([a-z][a-z])/(.+\..+\.(js|css))$ {
try_files $uri =404;
expires 1y;
}
@ -32,7 +35,7 @@ location /resources {
expires 1w;
}
# cache /main.f40e91d908a068a2.js forever since they never change
location ~* ^/.+\..+\.(js|css) {
location ~* ^/.+\..+\.(js|css)$ {
try_files /$lang/$uri /en-US/$uri =404;
expires 1y;
}