mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:12:26 +08:00
nginx sample config: also add A-C-A-O header to font files in uploads or plugins path
This commit is contained in:
parent
4f946319b4
commit
bec3f124dd
|
@ -91,7 +91,7 @@ server {
|
|||
# auth_basic on;
|
||||
# auth_basic_user_file /etc/nginx/htpasswd;
|
||||
|
||||
location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ {
|
||||
location ~* (assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control public,immutable;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
|
|
Loading…
Reference in New Issue
Block a user