geotrellis / geotrellis-site

Documentation and site for GeoTrellis.
Apache License 2.0
5 stars 10 forks source link

Serve documentation from docs.geotrellis.io #74

Closed tnation14 closed 7 years ago

tnation14 commented 7 years ago

This PR makes the GeoTrellis documentation accessible from https://docs.geotrellis.io by adding an nginx container that reverse-proxies requests to https://geotrellis.readthedocs.io. I followed the method outlined at http://docs.readthedocs.io/en/latest/alternate_domains.html#cname-ssl.

Notable changes

Testing

Fixes #72

hectcastro commented 7 years ago

Ah, I was unaware of this tactic and figured you were just going to associate the subdomain with the DNS record.

Have you tried manually configuring a CloudFront distribution to mimic this reverse proxy pattern (using https://geotrellis.readthedocs.io as the origin with custom headers)? Seem like it could be possible and might allow us to avoid deploying a second instance of Nginx.

tnation14 commented 7 years ago

Updated