diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index afa3f0ea161601bdd067c28545508c55bfb80a4e..cf5928cbb74c4899c44d8adfaf6f86bc5181d230 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,6 +44,9 @@ nginx-validation: # Test Developer Chat - "curl -v -H 'Host: chat.codimd.org' http://localhost/development 2>&1 | grep -q 'https://matrix.to/#/#hedgedoc-dev:matrix.org'" - "curl -v -H 'Host: chat.hedgedoc.org' http://localhost/development 2>&1 | grep -q 'https://matrix.to/#/#hedgedoc-dev:matrix.org'" + # Test Docs + - "curl -v -H 'Host: docs.codimd.org' http://localhost/ 2>&1 | grep -q 'https://github.com/hedgedoc/hedgedoc/tree/HEAD/docs'" + - "curl -v -H 'Host: docs.hedgedoc.org' http://localhost/ 2>&1 | grep -q 'https://github.com/hedgedoc/hedgedoc/tree/HEAD/docs'" # Cleanup - podman stop testing - podman rm testing diff --git a/nginx.d/docs.conf b/nginx.d/docs.conf new file mode 100644 index 0000000000000000000000000000000000000000..d37ef6f4f14b1a03b986a331aadcf0c32abb02f2 --- /dev/null +++ b/nginx.d/docs.conf @@ -0,0 +1,5 @@ +server { + listen *:80; + server_name docs.codimd.org docs.hedgedoc.org; + return 302 https://github.com/hedgedoc/hedgedoc/tree/HEAD/docs; +}