diff --git a/pillar/role/static_master.sls b/pillar/role/static_master.sls index 376e678..be381d5 100644 --- a/pillar/role/static_master.sls +++ b/pillar/role/static_master.sls @@ -40,6 +40,10 @@ profile: www.opensuse.org: repo: https://github.com/openSUSE/landing-page.git # www.o.o/openid/ is not handled by narwal*, haproxy forwards /openid/ to a different server + community.opensuse.org/ebooks: + repo: https://github.com/openSUSE/ebooks-archives.git + community.opensuse.org/meetings: + repo: https://github.com/openSUSE/meetings-archives.git server_list: - narwal4.infra.opensuse.org - narwal5.infra.opensuse.org diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index b8bcc52..612029d 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -1,4 +1,4 @@ -{% set websites = ['html5test', 'people', 'shop', 'static', 'studioexpress', 'lizards', 'www'] %} +{% set websites = ['html5test', 'people', 'shop', 'static', 'studioexpress', 'lizards', 'www', 'community'] %} include: - role.common.nginx @@ -56,6 +56,10 @@ nginx: - location ~ "^/\.well-known/": - add_header: Access-Control-Allow-Origin "*" {% endif %} + {% if website == 'community' %} + - location ~ ^/$: + - return: 301 https://www.opensuse.org/ + {% endif %} - error_page: 405 = $uri - error_page: 405 =200 $uri - error_page: 500 502 503 504 /50x.html