2020-07-07 10:22:17 +00:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
server_name dev.appsmith.com;
|
|
|
|
|
client_max_body_size 10m;
|
|
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
|
gzip_proxied any;
|
2020-08-07 07:35:38 +00:00
|
|
|
|
2020-07-07 10:22:17 +00:00
|
|
|
proxy_ssl_server_name on;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
|
|
|
|
|
|
sub_filter_once off;
|
|
|
|
|
location / {
|
|
|
|
|
proxy_pass http://localhost:3000;
|
|
|
|
|
sub_filter __APPSMITH_SENTRY_DSN__ '${APPSMITH_SENTRY_DSN}';
|
2020-08-27 12:54:03 +00:00
|
|
|
sub_filter __APPSMITH_SMART_LOOK_ID__ '${APPSMITH_SMART_LOOK_ID}';
|
2020-07-07 10:22:17 +00:00
|
|
|
sub_filter __APPSMITH_OAUTH2_GOOGLE_CLIENT_ID__ '${APPSMITH_OAUTH2_GOOGLE_CLIENT_ID}';
|
|
|
|
|
sub_filter __APPSMITH_OAUTH2_GITHUB_CLIENT_ID__ '${APPSMITH_OAUTH2_GITHUB_CLIENT_ID}';
|
2020-08-07 07:35:38 +00:00
|
|
|
sub_filter __APPSMITH_MARKETPLACE_ENABLED__ '${APPSMITH_MARKETPLACE_ENABLED}';
|
2020-07-07 10:22:17 +00:00
|
|
|
sub_filter __APPSMITH_SEGMENT_KEY__ '${APPSMITH_SEGMENT_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_OPTIMIZELY_KEY__ '${APPSMITH_OPTIMIZELY_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_ALGOLIA_API_ID__ '${APPSMITH_ALGOLIA_API_ID}';
|
|
|
|
|
sub_filter __APPSMITH_ALGOLIA_SEARCH_INDEX_NAME__ '${APPSMITH_ALGOLIA_SEARCH_INDEX_NAME}';
|
|
|
|
|
sub_filter __APPSMITH_ALGOLIA_API_KEY__ '${APPSMITH_ALGOLIA_API_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_CLIENT_LOG_LEVEL__ '${APPSMITH_CLIENT_LOG_LEVEL}';
|
|
|
|
|
sub_filter __APPSMITH_GOOGLE_MAPS_API_KEY__ '${APPSMITH_GOOGLE_MAPS_API_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_TNC_PP__ '${APPSMITH_TNC_PP}';
|
2020-08-13 04:46:06 +00:00
|
|
|
sub_filter __APPSMITH_SENTRY_RELEASE__ '${APPSMITH_SENTRY_RELEASE}';
|
|
|
|
|
sub_filter __APPSMITH_SENTRY_ENVIRONMENT__ '${APPSMITH_SENTRY_ENVIRONMENT}';
|
2020-08-14 09:47:47 +00:00
|
|
|
sub_filter __APPSMITH_VERSION_ID__ '${APPSMITH_VERSION_ID}';
|
|
|
|
|
sub_filter __APPSMITH_VERSION_RELEASE_DATE__ '${APPSMITH_VERSION_RELEASE_DATE}';
|
|
|
|
|
sub_filter __APPSMITH_INTERCOM_APP_ID__ '${APPSMITH_INTERCOM_APP_ID}';
|
2020-08-20 05:13:20 +00:00
|
|
|
sub_filter __APPSMITH_MAIL_ENABLED__ '${APPSMITH_MAIL_ENABLED}';
|
2020-11-05 12:40:04 +00:00
|
|
|
sub_filter __APPSMITH_SEGMENT_CE_KEY__ '${APPSMITH_SEGMENT_CE_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_DISABLE_TELEMETRY__ '${APPSMITH_DISABLE_TELEMETRY}';
|
2020-07-07 10:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /f {
|
|
|
|
|
proxy_pass https://cdn.optimizely.com/;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api {
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
2020-07-16 05:50:46 +00:00
|
|
|
proxy_pass http://localhost:8080;
|
2020-07-07 10:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /oauth2 {
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
2020-07-16 05:50:46 +00:00
|
|
|
proxy_pass http://localhost:8080;
|
2020-07-07 10:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /login {
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
2020-07-16 05:50:46 +00:00
|
|
|
proxy_pass http://localhost:8080;
|
2020-07-07 10:22:17 +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;
|
2020-08-07 07:35:38 +00:00
|
|
|
|
2020-07-07 10:22:17 +00:00
|
|
|
# include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
|
|
|
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
|
gzip on;
|
|
|
|
|
|
2020-08-07 07:35:38 +00:00
|
|
|
proxy_ssl_server_name on;
|
2020-07-07 10:22:17 +00:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
proxy_set_header Accept-Encoding "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub_filter_once off;
|
|
|
|
|
location / {
|
|
|
|
|
proxy_pass http://localhost:3000;
|
|
|
|
|
sub_filter __APPSMITH_SENTRY_DSN__ '${APPSMITH_SENTRY_DSN}';
|
2020-08-27 12:54:03 +00:00
|
|
|
sub_filter __APPSMITH_SMART_LOOK_ID__ '${APPSMITH_SMART_LOOK_ID}';
|
2020-07-07 10:22:17 +00:00
|
|
|
sub_filter __APPSMITH_OAUTH2_GOOGLE_CLIENT_ID__ '${APPSMITH_OAUTH2_GOOGLE_CLIENT_ID}';
|
|
|
|
|
sub_filter __APPSMITH_OAUTH2_GITHUB_CLIENT_ID__ '${APPSMITH_OAUTH2_GITHUB_CLIENT_ID}';
|
2020-08-07 07:35:38 +00:00
|
|
|
sub_filter __APPSMITH_MARKETPLACE_ENABLED__ '${APPSMITH_MARKETPLACE_ENABLED}';
|
2020-07-07 10:22:17 +00:00
|
|
|
sub_filter __APPSMITH_SEGMENT_KEY__ '${APPSMITH_SEGMENT_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_OPTIMIZELY_KEY__ '${APPSMITH_OPTIMIZELY_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_ALGOLIA_API_ID__ '${APPSMITH_ALGOLIA_API_ID}';
|
|
|
|
|
sub_filter __APPSMITH_ALGOLIA_SEARCH_INDEX_NAME__ '${APPSMITH_ALGOLIA_SEARCH_INDEX_NAME}';
|
|
|
|
|
sub_filter __APPSMITH_ALGOLIA_API_KEY__ '${APPSMITH_ALGOLIA_API_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_CLIENT_LOG_LEVEL__ '${APPSMITH_CLIENT_LOG_LEVEL}';
|
|
|
|
|
sub_filter __APPSMITH_GOOGLE_MAPS_API_KEY__ '${APPSMITH_GOOGLE_MAPS_API_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_TNC_PP__ '${APPSMITH_TNC_PP}';
|
2020-08-13 04:46:06 +00:00
|
|
|
sub_filter __APPSMITH_SENTRY_RELEASE__ '${APPSMITH_SENTRY_RELEASE}';
|
|
|
|
|
sub_filter __APPSMITH_SENTRY_ENVIRONMENT__ '${APPSMITH_SENTRY_ENVIRONMENT}';
|
2020-08-14 09:47:47 +00:00
|
|
|
sub_filter __APPSMITH_VERSION_ID__ '${APPSMITH_VERSION_ID}';
|
|
|
|
|
sub_filter __APPSMITH_VERSION_RELEASE_DATE__ '${APPSMITH_VERSION_RELEASE_DATE}';
|
|
|
|
|
sub_filter __APPSMITH_INTERCOM_APP_ID__ '${APPSMITH_INTERCOM_APP_ID}';
|
2020-08-20 05:13:20 +00:00
|
|
|
sub_filter __APPSMITH_MAIL_ENABLED__ '${APPSMITH_MAIL_ENABLED}';
|
2020-11-05 12:40:04 +00:00
|
|
|
sub_filter __APPSMITH_SEGMENT_CE_KEY__ '${APPSMITH_SEGMENT_CE_KEY}';
|
|
|
|
|
sub_filter __APPSMITH_DISABLE_TELEMETRY__ '${APPSMITH_DISABLE_TELEMETRY}';
|
2020-07-07 10:22:17 +00:00
|
|
|
}
|
2020-08-07 07:35:38 +00:00
|
|
|
|
2020-07-07 10:22:17 +00:00
|
|
|
location /f {
|
|
|
|
|
proxy_pass https://cdn.optimizely.com/;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api {
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
2020-07-16 05:50:46 +00:00
|
|
|
proxy_pass http://localhost:8080;
|
2020-07-07 10:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /oauth2 {
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
2020-07-16 05:50:46 +00:00
|
|
|
proxy_pass http://localhost:8080;
|
2020-07-07 10:22:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /login {
|
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
2020-07-16 05:50:46 +00:00
|
|
|
proxy_pass http://localhost:8080;
|
2020-07-07 10:22:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|