Smalyshev has uploaded a new change for review.
https://gerrit.wikimedia.org/r/317282
Change subject: Add configs for LDF server
......................................................................
Add configs for LDF server
To be merged after I78b4edd4d725d2b87cfead92a35b31b072f31b40 is merged.
Change-Id: Id5728242bb72b21b7dbd2d3a192fbd579063569b
Depends-On: I78b4edd4d725d2b87cfead92a35b31b072f31b40
---
M modules/wdqs/templates/nginx.erb
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/82/317282/1
diff --git a/modules/wdqs/templates/nginx.erb b/modules/wdqs/templates/nginx.erb
index 2fef012..c7e86f4 100644
--- a/modules/wdqs/templates/nginx.erb
+++ b/modules/wdqs/templates/nginx.erb
@@ -44,7 +44,11 @@
rewrite ^/sparql$ /bigdata/namespace/wdq/sparql last;
- location /bigdata/namespace/wdq/sparql {
+ location ~ ^/bigdata/(namespace/wdq/sparql|ldf|assets) {
+ if ( $uri ~ ^/bigdata/assets ) {
+ add_header Cache-Control "public, max-age=604800, s-maxage=604800";
+ }
+
proxy_pass http://localhost:9999;
proxy_set_header Host $http_host;
--
To view, visit https://gerrit.wikimedia.org/r/317282
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id5728242bb72b21b7dbd2d3a192fbd579063569b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Smalyshev <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits