Skip to content

Commit

Permalink
docs: Redirect to the OCDS Data Review Tool #404
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Feb 27, 2023
1 parent bd91d88 commit 6ae83b7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 20 deletions.
5 changes: 2 additions & 3 deletions docs/develop/update/apache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ Add to your service's Pillar file:
ocds-docs-live:
configuration: docs
servername: standard.open-contracting.org
serveraliases: ['live.standard.open-contracting.org']
serveraliases: ['myalias.open-contracting.org']
context:
ocds_cove_backend: https://cove.live3.cove.opencontracting.uk0.bigv.io
timeout: 1830 # 30 sec longer than cove's uwsgi.harakiri
mykey: myvalue
This will:

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This page serves as an orientation to how different components of the OCDS docum
Servers
-------

The ``docs`` target serves OCDS documentation (e.g. `1.1 <https://standard.open-contracting.org/1.1/>`__), its profiles (e.g. `Public Private Partnerships <https://standard.open-contracting.org/profiles/ppp/latest/en/>`__) and draft documentation (below). It is a reverse proxy to the `OCDS Data Review Tool <https://standard.open-contracting.org/review/>`. It also serves Elasticsearch.
The ``docs`` target serves OCDS documentation (e.g. `1.1 <https://standard.open-contracting.org/1.1/>`__), its profiles (e.g. `Public Private Partnerships <https://standard.open-contracting.org/profiles/ppp/latest/en/>`__) and draft documentation (below). It also serves Elasticsearch.

Version and language switchers
------------------------------
Expand Down
3 changes: 0 additions & 3 deletions pillar/docs.sls
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ apache:
ocds-docs-live:
configuration: docs
servername: standard.open-contracting.org
context:
ocds_cove_backend: https://cove.live3.cove.opencontracting.uk0.bigv.io
timeout: 1830 # 30 sec longer than cove's uwsgi.harakiri

elasticsearch:
public_access: True
Expand Down
2 changes: 0 additions & 2 deletions salt/apache/files/docs/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Disallow: /1.0
Disallow: /legacy
# Disallow protected development branches.
Disallow: /staging
# Disallow Data Review Tool results.
Disallow: /review/data

User-Agent: LinkChecker
Allow: /
16 changes: 5 additions & 11 deletions salt/apache/files/sites/docs.conf.include
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
'versions': ['latest', '1.1', '1.0'],
'languages': ['en', 'es', 'fr'],
'redirect_excludes': ['staging', 'schema', 'profiles', 'legacy', 'favicon.ico', 'robots.txt'],
'cove_backend': ocds_cove_backend,
'stable_sitemap': [['latest', '1.1', '1.0']],
},
}
Expand Down Expand Up @@ -163,13 +162,6 @@ SetEnv proxy-nokeepalive 1
</Location>
{% endfor %}
{% endfor %}

{% if 'cove_backend' in opts %}
# Proxy to the Data Review Tool, if configured. /media contains user-submitted content.
ProxyPass {{ root }}/review {{ opts.cove_backend }}{{ root }}/review timeout={{ timeout }}
ProxyPass {{ root }}/static {{ opts.cove_backend }}{{ root }}/static
ProxyPass {{ root }}/media {{ opts.cove_backend }}{{ root }}/media
{% endif %}
{% endfor %}

####################
Expand Down Expand Up @@ -217,9 +209,11 @@ Redirect /profiles/eu/master /profiles/eu/latest
Redirect /profiles/gpa/master /profiles/gpa/latest

# The Validator was renamed the Data Review Tool.
Redirect /validator /review
RedirectMatch ^/validator/(.*)$ /review/$1
# The Data Review Tool was moved to its own subdomain.
Redirect /validator https://review.standard.open-contracting.org
RedirectMatch ^/validator/(.*)$ https://review.standard.open-contracting.org/$1
# The Data Review Tools were moved to their own subdomain.
Redirect /review https://review.standard.open-contracting.org
RedirectMatch ^/review/(.*)$ https://review.standard.open-contracting.org/$1
Redirect /infrastructure/review https://review-oc4ids.standard.open-contracting.org
RedirectMatch ^/infrastructure/review/(.*)$ https://review-oc4ids.standard.open-contracting.org/$1

Expand Down

0 comments on commit 6ae83b7

Please sign in to comment.