diff --git a/pcbnew/github/nginx.conf b/pcbnew/github/nginx.conf index 24f3320230..1469087803 100644 --- a/pcbnew/github/nginx.conf +++ b/pcbnew/github/nginx.conf @@ -6,7 +6,7 @@ # In my case I also added a small RAM disk on a linux server to hold the cache. # This line in /etc/fstab adds my RAM disk, this is 10 mbytes but 5mb would # probably suffice: -none /var/cache/nginx tmpfs size=10m +# none /var/cache/nginx tmpfs size=10m # I then set my KIGITHUB environment variable to # export KIGITHUB=http://my_server:54321/KiCad @@ -28,7 +28,7 @@ events { http { - proxy_cache_path /var/cache/nginx keys_zone=cache_zone:10m; + proxy_cache_path /var/cache/nginx keys_zone=cache_zone:10m inactive=1w; server { # nginx will listen on this port: @@ -38,7 +38,7 @@ http { # hold the stuff for one week, then mark it as out of date which will # cause it to be reloaded from github. - proxy_cache_valid 1w; + proxy_cache_valid any 1w; location /KiCad/ { rewrite /KiCad/(.+) /KiCad/$1/zip/master break; @@ -46,7 +46,10 @@ http { # Skip past the redirect issued by https://github.com proxy_pass https://codeload.github.com; - proxy_set_header Proxy-Connection "Keep-Alive"; + proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; + proxy_cache_lock on; + + proxy_set_header Proxy-Connection "Keep-Alive"; proxy_ignore_headers "Set-Cookie"; proxy_ignore_headers "Cache-Control"; @@ -62,3 +65,4 @@ http { } } } +