Use Maps and SQL api behind nginx.
This commit is contained in:
parent
d7ab8b6dac
commit
9d841eda1f
@ -25,24 +25,24 @@ defaults: &defaults
|
||||
private:
|
||||
protocol: 'http'
|
||||
domain: 'cartodb.localhost'
|
||||
port: '8181'
|
||||
port: '80'
|
||||
verifycert: false
|
||||
public:
|
||||
protocol: 'http'
|
||||
domain: 'cartodb.localhost'
|
||||
port: '8181'
|
||||
port: '80'
|
||||
verifycert: false
|
||||
sql_api:
|
||||
private:
|
||||
protocol: 'http'
|
||||
domain: 'cartodb.localhost'
|
||||
endpoint: '/api/v1/sql'
|
||||
port: 8080
|
||||
endpoint: '/api/v2/sql'
|
||||
port: 80
|
||||
public:
|
||||
protocol: 'http'
|
||||
domain: 'cartodb.localhost'
|
||||
endpoint: '/api/v1/sql'
|
||||
port: 8080
|
||||
endpoint: '/api/v2/sql'
|
||||
port: 80
|
||||
api_requests_service_url: ''
|
||||
developers_host: 'http://developers.cartodb.localhost:3000'
|
||||
google_analytics:
|
||||
@ -63,7 +63,7 @@ defaults: &defaults
|
||||
common_data:
|
||||
protocol: 'https'
|
||||
username: 'common-data'
|
||||
host: 'cartodb.com'
|
||||
host: 'cartodb.localhost'
|
||||
format: 'shp'
|
||||
generate_every: 86400
|
||||
explore-api:
|
||||
@ -429,4 +429,3 @@ staging:
|
||||
|
||||
production:
|
||||
<<: *defaults
|
||||
|
||||
|
@ -1,7 +1,15 @@
|
||||
server {
|
||||
server_name cartodb.localhost *.cartodb.localhost;
|
||||
|
||||
location /api/v1/map/named {
|
||||
location /api/v1/maps {
|
||||
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_pass http://127.0.0.1:3000;
|
||||
}
|
||||
|
||||
location /api/v1/map {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
@ -9,7 +17,7 @@ server {
|
||||
proxy_pass http://127.0.0.1:8181;
|
||||
}
|
||||
|
||||
location /api/v1/sql {
|
||||
location /api/v2/sql {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
Loading…
Reference in New Issue
Block a user