Commit Graph

174 Commits

Author SHA1 Message Date
10239c04c0 更新 'Dockerfile' 2023-05-17 23:18:47 +08:00
9eebcde975 更新 'Dockerfile' 2023-05-17 21:56:50 +08:00
cd563ca008 删除 'sources.list' 2023-05-17 21:56:02 +08:00
fd8a3e6754 更新 'Dockerfile' 2023-05-12 08:26:20 +08:00
ab7047973b 更新 'Dockerfile' 2023-05-12 08:24:42 +08:00
bc8a186d0c 更新 'Dockerfile' 2023-05-12 08:22:52 +08:00
dde2611477 更新 'Dockerfile' 2023-05-12 00:02:51 +08:00
1cd8feae2f 更新 'Dockerfile' 2023-05-12 00:01:20 +08:00
7891dd4c36 更新 'Dockerfile' 2023-05-12 00:00:06 +08:00
99051714f6 更新 'Dockerfile' 2023-05-11 23:57:12 +08:00
3eea52fa49 更新 'Dockerfile' 2023-05-11 23:55:39 +08:00
46824b3fb0 更新 'Dockerfile' 2023-05-11 23:23:16 +08:00
10a14ef474 更新 'Dockerfile' 2023-05-11 22:26:08 +08:00
b4ea704460 更新 'Dockerfile' 2023-05-11 22:24:33 +08:00
09d6962abb 更新 'Dockerfile' 2023-05-11 22:12:06 +08:00
696b1a9d9b 更新 'Dockerfile' 2023-05-11 21:55:48 +08:00
249f7503fd 更新 'Dockerfile' 2023-05-11 21:47:34 +08:00
cf34a0bc3e 更新 'Dockerfile' 2023-05-11 21:45:53 +08:00
f5b5bf3d58 更新 'Dockerfile' 2023-05-11 21:44:10 +08:00
5c2f0b2fc7 更新 'Dockerfile' 2023-05-11 21:42:49 +08:00
2df68eb875 更新 'Dockerfile' 2023-05-11 21:40:31 +08:00
82e30755b5 更新 'Dockerfile' 2023-05-11 21:33:45 +08:00
2a3ae87b08 更新 'Dockerfile' 2023-05-11 21:31:52 +08:00
e19fcf0683 更新 'Dockerfile' 2023-05-11 21:20:01 +08:00
dd83d384a3 更新 'Dockerfile' 2023-05-11 20:44:21 +08:00
758c0d1991 更新 'Dockerfile' 2023-05-11 19:39:49 +08:00
38bfc560e0 更新 'Dockerfile' 2023-05-11 19:24:58 +08:00
1faf563acd 更新 'Dockerfile' 2023-05-11 19:19:10 +08:00
a1c53967e2 更新 'sources.list' 2023-05-11 19:18:17 +08:00
753aa9af2c 更新 'Dockerfile' 2023-05-11 19:14:41 +08:00
1d5e12b494 更新 'Dockerfile' 2023-05-11 19:14:06 +08:00
c0d0b50d0a 添加 'sources.list' 2023-05-11 19:13:18 +08:00
Stefan Verhoeven
af47cc8cce Increase import limits
Fixes #80
2019-11-07 17:47:16 +01:00
Stefan Verhoeven
d1395bb0b7 sql api requires a logs dir 2019-10-24 13:45:00 +02:00
Stefan Verhoeven
7f44060003 Adjust geocoder user email adress to be valid 2019-08-14 09:49:52 +02:00
Stefan Verhoeven
2f5575c41b
Merge pull request #79 from anthonyesper/patch-4
Fix Dev_User for MX Record Check
2019-08-14 09:49:24 +02:00
Stefan Verhoeven
8e2cd5c06d
Merge pull request #78 from anthonyesper/patch-1
Fix for CartoDB MX Record check
2019-08-14 09:49:14 +02:00
anthonyesper
0992ed80f0
Fix Dev_User for MX Record Check
Fix for Dev_User for MX Record Check
2019-08-08 21:13:27 -04:00
anthonyesper
b06682596d
Fix for CartoDB MX Record check
This is a fix for the MX record check on email domains for the org setup.
2019-08-08 21:01:09 -04:00
Stefan Verhoeven
d1832661cb
Merge pull request #76 from nballenger/update_caching
Update caching
2019-07-22 08:44:27 +02:00
Nick Ballenger
f0b5b7e79f Updated Varnish to cache SQL API / Windshaft
The previous version of this file was enough to cache requests for the
SQL API, but unfortunately no traffic was ever reaching Varnish to be
cached. Nginx was proxying directly to the SQL API port, and Varnish was
set to listen on 6081, so it wasn't able to intercept those requests. I
updated the Nginx proxy config to aim at 6081 for requests to both SQL
API and Windshaft, so now Varnish is receiving traffic. However, in
order to know which backend to send traffic to, I had to add a custom
HTTP header in the Nginx proxy pass. That header is picked up in the
`vcl_recv` varnish subroutine and used to switch between backends.

Additionally I've added logic for controlling what hosts can issue an
HTTP PURGE command--in this case just localhost, since everything is on
a single image. The purges will typically come from a Postgres trigger.

As an overview of the purge related changes, see the Varnish docs here:

https://varnish-cache.org/docs/3.0/tutorial/purging.html#http-purges
2019-07-18 16:27:25 -07:00
Nick Ballenger
d02a917f38 Commented out 'invalidation_service' section
I commented out the entire 'invalidation_service' section from
app_config.yml. It _should_ be sufficient to set 'enabled' to false in
that block, in order to prevent the Redis/Resque based invalidation
service from being used inside the postgres trigger for invalidating
cache items, but it's actually easier to just comment out the whole
block. See this portion of the Carto code for reference:

05a05fd695/app/models/user/db_service.rb (L1062-L1070)

The branch we want to go down in that code is the middle one--we want to
end up with `create_function_invalidate_varnish_http` running. That will
create a postgres trigger based on hitting the Varnish server's HTTP
listener, which is running on 6081. (You could have it hit the telnet
port by taking the third branch of that code, but given that telnet
isn't included in later Varnish versions, best not to.)

You want to avoid the first branch of that code, `create_function_invalidate_varnish_invalidation_service`,
because it includes this line:

05a05fd695/app/models/user/db_service.rb (L1601)

That's calling a custom Redis command, `TCH`, which is defined in a repo
that Carto has not open sourced--meaning the 'invalidation service' (as
a Redis job queue for the Resque job runner) can't be used in open
source Carto (unless you reverse engineer the Redis commands it uses.)
2019-07-18 16:17:28 -07:00
Nick Ballenger
de29a46c57 Changing path to nginx proxy conf file 2019-07-18 16:16:45 -07:00
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
906d496494 CartoDB-SQL-API switched from yarn to npm
Similar to Windshaft-cartodb see https://github.com/sverhoeven/docker-cartodb/pull/75
2019-06-19 14:18:02 +02:00
Stefan Verhoeven
9acb1b4919
Merge pull request #75 from christophekey/christophekey-npminstall
Update Dockerfile with npm install, not yarn
2019-06-19 14:16:13 +02:00
Christophe
dc32f39926
Update Dockerfile 2019-06-12 13:17:15 +01:00
Stefan Verhoeven
b106b301c9 sql api was unable to find pg module
Switched to yarn to install deps in flat hierarchy instead of npms nested
2019-04-13 17:00:12 +02:00
Stefan Verhoeven
65e9a7b253 Upgrade node + repin scikit-learn + sync config with sample 2019-04-09 15:20:17 +02:00
Stefan Verhoeven
fe1a12d1d1
Merge pull request #69 from bplmp/patch-1
Specify bundler version
2019-01-04 15:52:22 +01:00