From 0799806735942cc3d44626c3c8b54402343a47f5 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 22 Dec 2023 11:13:45 +0100 Subject: Document rebranding nginx config --- doc/branding.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'doc/branding.md') diff --git a/doc/branding.md b/doc/branding.md index 416a08b..0313e6a 100644 --- a/doc/branding.md +++ b/doc/branding.md @@ -1,3 +1,18 @@ # Branding for GeneNetwork GN Guile provides a branding mechanism for GN. + +To redirect a URL in nginx do something like: + +``` + server_name aging.genenetwork.org; + + location / { + proxy_pass http://127.0.0.1:8091/; + proxy_redirect off; + proxy_buffering off; + rewrite ^/$ /home/aging last; + } +``` + +it redirects the base URL to the page rendered in `web/view/brand/aging.scm` -- cgit v1.2.3