diff --git a/pillar/role/web_jekyll.sls b/pillar/role/web_jekyll.sls index 8349846..c9eccb2 100644 --- a/pillar/role/web_jekyll.sls +++ b/pillar/role/web_jekyll.sls @@ -15,7 +15,7 @@ nginx: - image/x-icon: 90d - ~application/: 28d - ~font/: 28d - - ~text/: 28d + - ~text/: 1d - ~image/: 28d - server: - server_name: {{ website }}.opensuse.org @@ -47,6 +47,9 @@ nginx: - rewrite: ^/feed/$ /feed.xml redirect - rewrite: ^.*/feed/$ /feed.xml redirect {% endif %} + {% if website == 'planet' %} + - rewrite: ^.*/global/$ / redirect + {% endif %} - location ~* \.(?:ttf|otf|eot|woff)$: - add_header: Access-Control-Allow-Origin "*" - location ~* \.(?:xml)$: