|
|
@ -12,10 +12,6 @@ server { |
|
|
proxy_pass http://edivorce-django:8080; |
|
|
proxy_pass http://edivorce-django:8080; |
|
|
proxy_pass_request_headers on; |
|
|
proxy_pass_request_headers on; |
|
|
|
|
|
|
|
|
# rewrite 302 redirect responses to absolute URL's so the justice proxy |
|
|
|
|
|
# doesn't mangle them by removing slashes from relative URL's |
|
|
|
|
|
proxy_redirect http://edivorce-django:8080 https://justice.gov.bc.ca; |
|
|
|
|
|
|
|
|
|
|
|
# remove directories from incoming requests; |
|
|
# remove directories from incoming requests; |
|
|
rewrite ^/divorce-dev$ / last; |
|
|
rewrite ^/divorce-dev$ / last; |
|
|
rewrite ^/divorce-test$ / last; |
|
|
rewrite ^/divorce-test$ / last; |
|
|
@ -26,12 +22,6 @@ server { |
|
|
rewrite ^/divorce(.*)$ $1 last; |
|
|
rewrite ^/divorce(.*)$ $1 last; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
merge_slashes off; |
|
|
|
|
|
# replace merge_slashes' behavior with "rewrite double slashes" |
|
|
|
|
|
location ~* "//" { |
|
|
|
|
|
rewrite ^(.*)//(.*)$ $1/$2; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# static no rewrite (dev) |
|
|
# static no rewrite (dev) |
|
|
location /divorce-dev/static/ { |
|
|
location /divorce-dev/static/ { |
|
|
#todo: add caching |
|
|
#todo: add caching |
|
|
|