mirror of
https://github.com/trambarhq/relaks-wordpress-example.git
synced 2025-09-02 04:32:37 +02:00
Renamed Nginx config file.
Added references to published libraries to package.json. Fixed prefetching when there's a base path. Rebuilt code.
This commit is contained in:
28
server/nginx-remote/default.conf
Normal file
28
server/nginx-remote/default.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user