mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 16:29:22 +00:00
update nginx.sample.conf to take attachmetns into account
This commit is contained in:
parent
ac41e94619
commit
6beb12e778
@ -21,8 +21,8 @@ server {
|
||||
location / {
|
||||
root /home/discourse/discourse/public;
|
||||
|
||||
## optional image anti-hotlinking rules
|
||||
#location ~ \.(jpe?g|png|gif)$ {
|
||||
## optional upload anti-hotlinking rules
|
||||
#location ~ ^/uploads/ {
|
||||
# valid_referers none blocked mysite.com *.mysite.com;
|
||||
# if ($invalid_referer) {
|
||||
# return 403;
|
||||
@ -35,7 +35,7 @@ server {
|
||||
add_header ETag "";
|
||||
}
|
||||
|
||||
location ~ ^/assets/ {
|
||||
location ~ ^/(assets|uploads)/ {
|
||||
expires 1y;
|
||||
add_header Cache-Control public;
|
||||
add_header ETag "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user