2020-06-24 06:34:14 +00:00
|
|
|
#### TODO: Please change the backend endpoint from release-api.appsmith.com --> https://release-api.appsmith.com when merged into release
|
2020-05-05 12:16:51 +00:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
server_name dev.appsmith.com;
|
|
|
|
|
client_max_body_size 10m;
|
|
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
|
gzip_proxied any;
|
2020-05-13 14:08:39 +00:00
|
|
|
|
2020-05-05 12:16:51 +00:00
|
|
|
proxy_ssl_server_name on;
|
2020-05-13 14:08:39 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
2020-05-05 12:16:51 +00:00
|
|
|
location / {
|
|
|
|
|
proxy_pass http://host.docker.internal:3000;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-04 07:13:36 +00:00
|
|
|
location /f {
|
|
|
|
|
proxy_pass https://cdn.optimizely.com/;
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-05 12:16:51 +00:00
|
|
|
location /api {
|
2020-05-19 05:06:41 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
|
2020-06-24 06:34:14 +00:00
|
|
|
proxy_pass https://release-api.appsmith.com;
|
2020-05-05 12:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /oauth2 {
|
2020-05-19 05:06:41 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
|
2020-06-24 06:34:14 +00:00
|
|
|
proxy_pass https://release-api.appsmith.com;
|
2020-05-05 12:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
2020-05-19 04:10:01 +00:00
|
|
|
location /login {
|
2020-05-19 05:06:41 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
|
2020-06-24 06:34:14 +00:00
|
|
|
proxy_pass https://release-api.appsmith.com;
|
2020-05-19 04:10:01 +00:00
|
|
|
}
|
2020-05-05 12:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
server_name dev.appsmith.com;
|
|
|
|
|
|
|
|
|
|
ssl_certificate /etc/certificate/dev.appsmith.com.pem;
|
|
|
|
|
ssl_certificate_key /etc/certificate/dev.appsmith.com-key.pem;
|
|
|
|
|
|
|
|
|
|
# include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
|
|
|
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
|
gzip on;
|
|
|
|
|
|
2020-05-13 14:08:39 +00:00
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
2020-05-05 12:16:51 +00:00
|
|
|
location / {
|
|
|
|
|
proxy_pass http://host.docker.internal:3000;
|
|
|
|
|
}
|
2020-06-04 07:13:36 +00:00
|
|
|
|
|
|
|
|
location /f {
|
|
|
|
|
proxy_pass https://cdn.optimizely.com/;
|
|
|
|
|
}
|
2020-05-05 12:16:51 +00:00
|
|
|
|
|
|
|
|
location /api {
|
2020-05-19 05:06:41 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
2020-06-24 06:34:14 +00:00
|
|
|
proxy_pass https://release-api.appsmith.com;
|
2020-05-05 12:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /oauth2 {
|
2020-05-19 05:06:41 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
|
2020-06-24 06:34:14 +00:00
|
|
|
proxy_pass https://release-api.appsmith.com;
|
2020-05-19 04:10:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /login {
|
2020-05-19 05:06:41 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
|
2020-06-24 06:34:14 +00:00
|
|
|
proxy_pass https://release-api.appsmith.com;
|
2020-05-05 12:16:51 +00:00
|
|
|
}
|
|
|
|
|
}
|