mirror of
https://seed.radicle.dev/rad:z254T5p17bdFPmzfDojsdjo4HjpoZ.git
synced 2026-10-18 19:10:32 +08:00
files: Add Cache-Control header for *.json
This commit is contained in:
@@ -24,6 +24,11 @@ in {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
serverName = name.dev;
|
||||
|
||||
locations."~* \\.json$".extraConfig = ''
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Cache-Control' 'max-age=60';
|
||||
'';
|
||||
};
|
||||
|
||||
users.users = {
|
||||
|
||||
Reference in New Issue
Block a user