mirror of
https://github.com/trambarhq/relaks-wordpress-example.git
synced 2025-09-02 04:32:37 +02:00
Added references to published libraries to package.json. Fixed prefetching when there's a base path. Rebuilt code.
29 lines
795 B
Plaintext
29 lines
795 B
Plaintext
proxy_cache_path /var/cache/nginx/data keys_zone=data:10m max_size=1g inactive=7d;
|
|
proxy_temp_path /var/cache/nginx/tmp;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
location / {
|
|
proxy_pass http://node;
|
|
proxy_set_header Host $http_host;
|
|
proxy_cache data;
|
|
proxy_cache_key $uri$is_args$args;
|
|
proxy_cache_min_uses 1;
|
|
proxy_cache_valid 400 404 1m;
|
|
proxy_hide_header Cache-Control;
|
|
proxy_ignore_headers Vary;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
add_header Access-Control-Expose-Headers X-WP-Total;
|
|
add_header Cache-Control "public,max-age=0";
|
|
add_header X-Cache-Date $upstream_http_date;
|
|
add_header X-Cache-Status $upstream_cache_status;
|
|
}
|
|
}
|
|
|
|
upstream node {
|
|
server node:80;
|
|
}
|