d7ab8b6dac
Updated configs to master branch of Cartodb repos.
31 lines
1016 B
Plaintext
31 lines
1016 B
Plaintext
server {
|
|
server_name cartodb.localhost *.cartodb.localhost;
|
|
|
|
location /api/v1/map/named {
|
|
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:8181;
|
|
}
|
|
|
|
location /api/v1/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;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_pass http://127.0.0.1:8080;
|
|
}
|
|
|
|
location / {
|
|
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;
|
|
}
|
|
|
|
error_log /var/log/nginx/cartodb_error.log;
|
|
access_log /var/log/nginx/cartodb_access.log;
|
|
}
|