Skip to content

Commit

Permalink
Merge pull request #8031 from ckan/Zharktas-patch-1
Browse files Browse the repository at this point in the history
Remove nginx cache as beaker cookies are not cacheable
  • Loading branch information
kowh-ai committed Mar 5, 2024
2 parents 0b3935d + 052ef44 commit a1a8f1c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions doc/maintaining/installing/deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,22 +177,14 @@ following contents:

.. parsed-literal::
proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=cache:30m max_size=250m;
proxy_temp_path /tmp/nginx_proxy 1 2;
server {
client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_cache cache;
proxy_cache_bypass $cookie_auth_tkt;
proxy_no_cache $cookie_auth_tkt;
proxy_cache_valid 30m;
proxy_cache_key $host$scheme$proxy_host$request_uri;
# In emergency comment out line to force caching
# proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
proxy_set_header Host $host;
}
}
Expand Down

0 comments on commit a1a8f1c

Please sign in to comment.