Browse Source

srh rewrites

windhamdavid 1 week ago
parent
commit
59e6040c83
1 changed files with 6 additions and 0 deletions
  1. 6 0
      docs/srh.md

+ 6 - 0
docs/srh.md

@@ -557,4 +557,10 @@ location ~ ^/MySelfRegional/(.*)$ {
 	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 	proxy_set_header X-Forwarded-Proto $scheme;
 }
+
+location ~ ^/\ MySelfRegional/(.*)$ {
+	if ($http_accept ~* "text/html") {
+		return 302 https://mychart.selfregional.org/mysrh/$1;
+	}
+}
 ```