Commit Graph

8 Commits

Author SHA1 Message Date
Nick Ballenger
5f0eb86bed Changing the Nginx config to a single file
I've combined the core nginx.conf with the proxy config, which all goes
into /etc/nginx/nginx.conf.

I've made a number of changes:

* Nginx now proxies both SQL API and Windshaft requests through Varnish.
* Nginx adds a custom HTTP header, X-Carto-Service, so that Varnish can
differentiate between backends (since it can't do so based on incoming
port).
* I've modified the primary Nginx log format to include more information
on how requests are being proxied--you can now see the upstream address
for proxied requests.
* I've added the `proxy_no_cache` and `proxy_cache_bypass` directives to
the Windshaft and SQL API proxy sections. Without those directives,
Nginx may attempt to act as a cache, returning 304 Not Modified for
resources that more accurately should be cached by Varnish (whose cache
is invalidated via a Postgres trigger for updated metadata).
2019-07-18 16:08:53 -07:00
Stefan Verhoeven
397ffca212 Disable the request size max limit
Refs #63
2018-09-20 08:43:20 +02:00
Stefan Verhoeven
6b0e3c6e2f Set client_max_body_size to 150MB
Fixes #9
2017-08-01 07:55:56 +02:00
Stefan Verhoeven
bbf2c54325 * Embed nginx inside Docker image so all services are reversed proxied behind port 80
* Use Varnish 3 from source tarball, newer and OS Varnish could not disable telnet authentication required by Carto
* Remove sources of varnish, gdal, /cartodb/.git when no longer needed in order to make image smaller
* Dropped Nokia and GMAP basemaps, they did not work
* Dropped schema trigger installation, it is no longer needed
* Configure Carto in Python and NodeJS
* Build assets
* Use self as asset_host, assets are hosted by nginx instead of rails
2017-04-03 22:55:12 +02:00
Egil Moeller
a22bb577e1 Bugfixes for api version/url and regexps 2015-12-04 02:41:21 +00:00
Stefan Verhoeven
b71f0ea0d7 Switched to subdomainless urls.
- Allow avatar to be uploaded to local fs.
- Renamed star avatar
- Allow uploads up to 100Mb file size
2015-07-08 16:48:20 +02:00
Stefan Verhoeven
9d841eda1f Use Maps and SQL api behind nginx. 2015-05-18 14:37:45 +02:00
Stefan Verhoeven
d7ab8b6dac Put cartodb db services behind nginx.
Updated configs to master branch of Cartodb repos.
2015-05-16 13:01:49 +02:00