Browse Source

srh rewrites

windhamdavid 2 days ago
parent
commit
8730d22195
1 changed files with 13 additions and 0 deletions
  1. 13 0
      docs/srh.md

+ 13 - 0
docs/srh.md

@@ -225,8 +225,16 @@ Important Notes:
 ## CURRENT CONFIG
 ## CURRENT CONFIG
 
 
 ```sh
 ```sh
+underscores_in_headers on;
+
+# Provider Finder Example
 location ~ ^/providers(.*)$ {
 location ~ ^/providers(.*)$ {
 	rewrite ^/providers(.*)$ /MySRHTST/-/providers$1?host=MySelfRegional break;
 	rewrite ^/providers(.*)$ /MySRHTST/-/providers$1?host=MySelfRegional break;
+	proxy_set_header Host $host;
+	proxy_set_header X-Real-IP $remote_addr;
+	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+	proxy_set_header X-Forwarded-Proto $scheme;
+	proxy_set_header RequestVerificationToken $http_requestverificationtoken;
 	proxy_pass https://mychart-np.et1235.epichosted.com;
 	proxy_pass https://mychart-np.et1235.epichosted.com;
 }
 }
 
 
@@ -234,6 +242,11 @@ location ~ ^/providers(.*)$ {
 location ~ ^/MySelfRegional/(.*)$ {
 location ~ ^/MySelfRegional/(.*)$ {
 
 
 	# Assets Example (if not text/html)
 	# Assets Example (if not text/html)
+	proxy_set_header Host $host;
+	proxy_set_header X-Real-IP $remote_addr;
+	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+	proxy_set_header X-Forwarded-Proto $scheme;
+	proxy_set_header RequestVerificationToken $http_requestverificationtoken;
 	proxy_pass https://mychart-np.et1235.epichosted.com/MySRHTST/$1;
 	proxy_pass https://mychart-np.et1235.epichosted.com/MySRHTST/$1;
 }
 }