Skip to content
Snippets Groups Projects
Verified Commit 043b85d2 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Add redirect for documentation as well

parent 5ca11723
No related branches found
No related tags found
Loading
Checking pipeline status
...@@ -44,6 +44,9 @@ nginx-validation: ...@@ -44,6 +44,9 @@ nginx-validation:
# Test Developer Chat # 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.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'" - "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 # Cleanup
- podman stop testing - podman stop testing
- podman rm testing - podman rm testing
......
server {
listen *:80;
server_name docs.codimd.org docs.hedgedoc.org;
return 302 https://github.com/hedgedoc/hedgedoc/tree/HEAD/docs;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment