Skip to content

Commit

Permalink
tried to enable caching but failed... worth to commit anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Nov 16, 2017
1 parent 0850d60 commit 2e38f6c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/ckan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
labels: {app: ckan}
spec:
containers:
- image: gcr.io/hasadna-odata/data4dappl-ckan:68f204eb8d4ae18ed7d2c9bcd1d755dd583d5f20
- image: gcr.io/hasadna-odata/data4dappl-ckan:0850d6038a5b4caec782dfee4117793cd5ea519f
name: ckan
ports:
- {containerPort: 5000}
Expand Down
15 changes: 15 additions & 0 deletions k8s/nginx-conf-d/ckan.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# location /fantastic/ {
# proxy_cache nginx_ckan;
# proxy_pass http://ckan:5000;
# }

# location /base/images/ {
# proxy_cache nginx_ckan;
# proxy_pass http://ckan:5000;
# }

# location /odata-logo.png {
# proxy_cache nginx_ckan;
# proxy_pass http://ckan:5000;
# }

location / {
client_max_body_size 500m;
proxy_pass http://ckan:5000/;
Expand Down
4 changes: 4 additions & 0 deletions k8s/nginx-conf-d/default.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# cache for 1 hour up to 100 MB
proxy_cache_path /tmp/nginx_ckan_cache levels=1:2 keys_zone=nginx_ckan:100m inactive=60m;
proxy_cache_key "$scheme$request_method$host$request_uri";

server {
listen 80;
server_name _;
Expand Down

0 comments on commit 2e38f6c

Please sign in to comment.