Commit Graph

340 Commits

Author SHA1 Message Date
Sumesh Pradhan
c843f829fd
Set HOSTNAME env for heroku deployment (#17095) 2022-09-29 17:19:24 +05:30
Shrikant Sharat Kandula
24655f6ceb
For paths with an extension, give 404 if missing (#17035) 2022-09-26 09:41:38 +05:30
Shrikant Sharat Kandula
6fc2b1680e
Fix key file permissions error on Windows (#16862) 2022-09-19 13:49:27 +05:30
Goutham Pratapa
b1553e946a
fix: docker entrypoint script to check mongo replicaset (#16751)
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-09-14 20:30:18 +05:30
Sumesh Pradhan
8f01b84fee
Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30
Sumesh Pradhan
5a6ab1d094
Fix entrypoint.sh external mongo replica set check (#16151) 2022-09-13 14:14:01 +05:30
Shrikant Sharat Kandula
8a0838505a
All outgoing requests should go through the configured proxy (#14427)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2022-09-01 11:16:45 +05:30
Sumesh Pradhan
9cf132f23e
Disable nginx server tokens, set gzip_type to * (#15767) 2022-08-05 16:40:38 +05:30
Shrikant Sharat Kandula
868b385e7b
Change to allow all domains to embed Appsmith apps (#15619)
The control to configure what domains are allowed to embed Appsmith apps is still available, but the default of not allowing anything except for 'self' is changed to allow everything.

While this is convenient, we encourage our users to configure their frame ancestors to limit what domains can embed their Appsmith apps.

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-08-02 15:41:52 +05:30
Sumesh Pradhan
edbfef7d51
Auto-backup and cleanup with appsmithctl (#15203)
- Auto-cleanup of backup files using env variable APPSMITH_BACKUP_ARCHIVE_LIMIT (default value is 4) after every backup.
- Updated docker file to include watchtower hook scripts.
- Error mail interval to 6hrs.
2022-07-28 17:45:28 +05:30
Shrikant Sharat Kandula
dd46348981
Fix isset command not found (#14997) 2022-07-25 07:42:48 +05:30
Arpit Mohan
4674be719f
Fixing bug where the Mongo DB URL wasn't being picked up by the billing script (#15378) 2022-07-22 18:11:02 +05:30
Shrikant Sharat Kandula
874b9945f8
Control where embedding of Appsmith is allowed (#15348)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-07-21 13:03:35 +05:30
Goutham Pratapa
b4eddfe61e
feat: add hostname to log file (#15005) 2022-07-21 12:20:15 +05:30
Shrikant Sharat Kandula
647b2cd430
If MongoDB key doesn't exist, create it (#15207)
This can happen during a migration from very old slim-container instance to a fat container setup. Besides, for whatever reason, if the key file is missing, then the instance fails to come up. This fix will ensure that we can recover from that state automatically.
2022-07-20 20:42:23 +05:30
Arpit Mohan
1af9e2042f
chore: Adding the appsmithctl command to estimate the bill for an existing Appsmith user (#15311)
## Description

This PR adds to the `estimate_billing` option to the `appsmithctl` command. This will help existing users estimate their bill when they consider upgrading to the paid edition.

Usage: 
```
appsmithctl estimate_billing 

Options:
  --sessionPrice    The price per active session. Defaults to 0.3 
  --priceCap        The price cap for a user in a given month. Defaults to 15
```

A user can also run the command for various scenarios to determine the optimum capacity tier.

## Type of change

- New feature (non-breaking change which adds functionality)
- This change requires a documentation update

## How Has This Been Tested?

Manually

## Checklist:

- [ ] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
2022-07-20 10:33:47 +05:30
Sumesh Pradhan
85151b845e
appsmithctl backup error logging and mailer (#14797) 2022-07-07 11:19:25 +05:30
Shrikant Sharat Kandula
265cca4003
Proxy arguments so that they are not set when empty (#14508) 2022-06-15 14:01:46 +05:30
Sumesh Pradhan
364c5d6701
Restore encryption sale var typo fix (#14499) 2022-06-15 10:12:54 +05:30
Sumesh Pradhan
b9c5d91968
Backup & Restore commands for appsmithctl (#14270) 2022-06-09 09:14:18 +05:30
Shrikant Sharat Kandula
73e43fadbd
Support for custom CA certificates (#14207)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-06-01 11:14:27 +05:30
Sumesh Pradhan
31c98a8fda
Added healthcheck for editor with https (#13947)
Added a fix for the docker health check on editor with ssl enabled for appsmith-ce fat container and the slim client appsmith-editor
2022-05-27 17:05:21 +05:30
Shrikant Sharat Kandula
f344688b2f
Fix log file location for MongoDB (#13744) 2022-05-11 19:13:30 +02:00
Sumesh Pradhan
5e92d48037
Add healthcheck to docker (#13154) 2022-05-06 11:45:56 +05:30
Sumesh Pradhan
511278f067
Disable auto updates helm and docker-compose doc (#13443) 2022-04-29 17:16:37 +05:30
Sumesh Pradhan
9f2c5dc5f7
Renamed temporary encryption variables in docker entry-point script (#12187) 2022-04-15 17:44:08 +05:30
Sumesh Pradhan
f973c2d86d
fix: removed redundant func call init_ssl_cert (#12854) 2022-04-13 07:56:17 +02:00
Trisha Anand
c37fdb9f1c
fix: Only setting maximum heap size for heroku deployed instances (#12725)
Co-authored-by: Arpit Mohan <mohanarpit@users.noreply.github.com>
2022-04-08 18:48:23 +05:30
Shrikant Sharat Kandula
c6deec2f81
fix: Fix server not starting when custom domain not set 2022-04-08 15:19:11 +05:30
Arpit Mohan
7807d5f5c6 chore: Fixing nginx deployment for non-Heroku deployment 2022-04-07 21:00:17 +02:00
geekup-legodevops
2843da9bfd
Refactor initialize env files flow in entrypoint of container (#12585)
Co-authored-by: phat.ct <phat.ct@geekup.vn>
2022-04-05 20:22:52 +05:30
geekup-legodevops
c210857791
Redis running on 64k pagesize (#12264) 2022-04-01 12:28:03 +05:30
Shrikant Sharat Kandula
9cfb7b38ee
Fix basic auth password index 2022-03-25 12:15:05 +05:30
Shrikant Sharat Kandula
d254e3f0e8
Fix fat container not starting NGINX (#12210) 2022-03-24 14:40:42 +05:30
geekup-legodevops
3fcdcddb04
Capture nginx access and error logs in fat container (#12205) 2022-03-24 13:47:25 +05:30
geekup-legodevops
382ea53ab3
Refactor to deploy Heroku using new Docker image (#9127) 2022-03-24 13:17:36 +05:30
Arpit Mohan
f9b28aedbf
Upgrade boxen, remove yargs and chalk (#12043) 2022-03-24 12:57:46 +05:30
Shrikant Sharat Kandula
4dd0719570
Work with copied cert files after fat migration (#12182) 2022-03-24 06:04:38 +05:30
Shrikant Sharat Kandula
b2e9498f2d
Check Redis URL for localhost as well (#12173) 2022-03-23 17:07:14 +05:30
Shrikant Sharat Kandula
b7884f1feb
Fix replicaset checking with limited permissions (#11969) 2022-03-21 13:47:29 +05:30
geekup-legodevops
70096450d8
Redirect Redis log to supervisord log (#11994) 2022-03-21 11:59:40 +05:30
Sumesh Pradhan
4a19b6789b
Java arguments tuning using env (#11581) 2022-03-17 18:40:51 +05:30
geekup-legodevops
4d7c9b7822
Add script to stop/start MongoDB and Redis if changed (#11894) 2022-03-17 17:58:48 +05:30
Trisha Anand
407d963aa5 Updating it to 10s which was the initial configuration 2022-03-17 17:18:45 +05:30
Trisha Anand
7d35f4b2b0 Update : On CE not waiting for backend to be marked as running 2022-03-17 17:00:47 +05:30
Trisha Anand
42b4a2849e hotfix: Check if the backend is up within 30s to reduce the time it takes for editor to come up on restart 2022-03-17 16:52:24 +05:30
Shrikant Sharat Kandula
a12ed0cc18
Fix nginx not starting in fat container (#11909) 2022-03-16 13:21:25 +01:00
Trisha Anand
78e562cbb3
chore: Increasing the start time check for backend process to stay up to 3.5 minutes to ensure that all the checks have run and some grace time before marking the process to be running. (#11876) 2022-03-15 17:43:02 +05:30
Shrikant Sharat Kandula
f08893f233
fix: Fix removal of env variables not working in NGINX (#11854)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-03-15 13:32:59 +05:30
Shrikant Sharat Kandula
e732190151
fix: Fix special char handling in pre-define env (#11799) 2022-03-11 21:21:17 +05:30
Khoa Huỳnh
e59c69f915
Fix MongoDB permission issue in checking replica set (#11613) 2022-03-10 10:16:16 +05:30
Shrikant Sharat Kandula
993c91e31b
Apply env variables in NGINX config before startup (#11531)
Instead of doing env substitutions at request processing time, do it
before NGINX even starts.
2022-03-09 12:38:48 +05:30
akash-codemonk
a6946fbcf0
fix: end guided tour on exiting editor (#11084) 2022-03-08 20:25:20 +05:30
Shrikant Sharat Kandula
1233f7f7ee
chore: Change watchtower to latest from latest-dev (#11669)
This is because watchtower:latest-dev doesn't run on ARM architectures.
2022-03-07 13:58:20 +05:30
geekup-legodevops
db7a046116
Refactor entrypoint script to support migrate slim to fat container (#11519) 2022-03-03 08:40:29 +05:30
geekup-legodevops
762357e97c
Remove curl call to download certbot config files for ssl (#11372) 2022-03-03 08:39:21 +05:30
Ankita Kinger
13fe125a0c
feat: Add disconnect button on auth config pages and form login callout banner (#11389)
* added form login callout banner

* form login config page changes

* form login config page changes

* added redirecturl and uneditable field components

* added disconnect button on auth pages

* Added env variables for form login auth page

* added disconnect button on auth pages

* updated docs link for dform login callout doc

* added condition for disconnect button

* added ce changes done on ee

* updated css

* suggested changes in PR review

* suggested changes in PR review

* suggested changes in PR review

* reverted gitignore files changes

* reverted gitignore files changes

* updated logic for saving admin settings

* removed unused imports

* added changes for taginput field

* removed console

* removed warning

* removed unwanted changes
2022-03-02 23:48:50 +05:30
Shrikant Sharat Kandula
cd8db7fbc2
chore: Use latest-dev for watchtower (#11369) 2022-02-23 21:48:41 +05:30
Abhinav Jha
938edd5284
chore: Remove old way of adding feature flags (#11213)
* Remove optimizely, as it isn't being used anymore from the frontend codebase

* Remove optimizely references form netlify config, vercel config, index.html, docker script, nginx templates and example .env file
2022-02-16 19:57:58 +05:30
geekup-legodevops
2d8e7fee0d
Enable replicaset on local MongoDB only (#10010) 2022-02-09 14:32:46 +05:30
geekup-legodevops
e85b34d66e
Add Helm configMap to update application configuration (#10157) 2022-01-31 13:27:01 +05:30
dependabot[bot]
23c792e94c
chore: bump shelljs from 0.8.4 to 0.8.5 in /deploy/docker/utils (#10415)
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/shelljs/shelljs/releases)
- [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)

---
updated-dependencies:
- dependency-name: shelljs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-15 03:53:08 +05:30
Shrikant Sharat Kandula
42dd099b11
Set MongoDB Key permissions everytime (#10080) 2022-01-10 17:19:29 +05:30
Shrikant Sharat Kandula
023949626d
Fix missing acme route in NGINX HTTPS config (#10094)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-01-01 11:39:49 +05:30
Shrikant Sharat Kandula
8411e35999
Fix custom domain's env variable name (#10092) 2021-12-31 18:04:10 +05:30
Subin Mathew
5e0ee52ff5
Update docker compose file to have update schedule to 1 hour (#9943) 2021-12-23 10:48:26 +05:30
geekup-legodevops
daf60fab72
Add appsmithctl command to migrate instance to new server (#9508) 2021-12-17 10:39:20 +05:30
Shrikant Sharat Kandula
dd52961850 Fix fat image not being pushed to DockerHub
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-12-17 06:42:17 +05:30
Shrikant Sharat Kandula
334e1dce1d
ci: Run a small test on fat image before pushing to DockerHub (#8619) 2021-12-12 14:34:17 +05:30
Shrikant Sharat Kandula
3c259386ff
fix: Add fix for log4j2 RCE (#9706)
Ref: https://spring.io/blog/2021/12/10/log4j2-vulnerability-and-spring-boot.

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-12-11 09:54:38 +05:30
Shrikant Sharat Kandula
4612607122
Set default APPSMITH_GIT_ROOT value in Docker (#9666) 2021-12-09 12:11:34 +05:30
geekup-legodevops
31a4d14196
Add flow to generate Nginx HTTP only if provision cert fail (#9546) 2021-12-07 15:37:51 +05:30
geekup-legodevops
885f9675c2
Add confirmation step in importing DB command (#9265) 2021-11-26 15:40:16 +05:30
Shrikant Sharat Kandula
94f5a87cdd
Load env variables at start of backend and rts (#9325)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-24 20:22:22 +05:30
Shrikant Sharat Kandula
f3ad4ef9bb Fix variable escaping in docker entrypoint script
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-23 15:53:04 +05:30
Shrikant Sharat Kandula
b86abeadc0 Include origin_scheme in new nginx configs
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-23 13:47:44 +05:30
Shrikant Sharat Kandula
768885822b
Fix deleting files when they don't exist 2021-11-23 12:13:10 +05:30
geekup-legodevops
5ec733e5a2
Refactor to generate nginx config file with auto-redirect HTTPS (#9256)
Refactor flow to generate nginx configuration file corresponding Custom domain set up

Add 2 template for Nginx template for HTTP and HTTPS. HTTPS contains new block for auto-redirect for HTTPS
2021-11-23 11:22:09 +05:30
geekup-legodevops
5e1a496349
Config for editor program run script instead of nginx (#8922)
Add script to re-generate nginx config file & start nginx

Move function init_ssl_cert into separated file and reuse it in new script and entrypoint

Change command config & add new config to kill all sub-process of a supervisord child program in editor program configure file
2021-11-23 09:39:13 +05:30
Shrikant Sharat Kandula
afeeb414dc
Fix OAuth failing when there's SSL termination (#9286)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-23 08:15:35 +05:30
geekup-legodevops
d3a491f0b3
Add flow to use custom certificate if provided (#9106)
- Add sub-directory for user to put custom certificate to use inside container
- Add flow to check existing custom certificate & process to use it
- Add section Custom Certificate in README.md
2021-11-16 16:32:28 +05:30
Shrikant Sharat Kandula
eadaa65251
Fix sessions being cleared after fat container is restarted (#9112) 2021-11-15 11:24:45 +05:30
Joshua Lund
a874b36b11
fix: Remove duplicate APPSMITH_MAIL_ENABLED env variable. Fixes #8852. (#8853) 2021-10-27 21:39:37 +05:30
geekup-legodevops
6cbe4b8faf
Config supervisord to write logs into log files (#8145) 2021-10-19 12:59:55 +05:30
Shrikant Sharat Kandula
8590ff3b75
Remove optimizely route (#8345) 2021-10-08 18:24:14 +05:30
Shrikant Sharat Kandula
5a0d04bce6
Apply env variable renaming automatically (#8217) 2021-10-05 20:49:22 +05:30
Shrikant Sharat Kandula
69015645d2
Fix telemetry docs link 2021-10-05 17:09:33 +05:30
geekup-legodevops
f37f9451ef
feat: Support building Docker image for ARM arch (#7832) 2021-09-29 14:33:27 +05:30
Shrikant Sharat Kandula
40c00c3a98
Fix RTS routing in fat container (#7775) 2021-09-24 08:20:20 +05:30
Shrikant Sharat Kandula
f0a61285a6
docs: Fat container documentation fixes (#7207)
Added additional details about how to use the fat container, and how to manage / maintain it.

Also includes some refactorings that shouldn't affect the functionality significantly.
2021-09-14 19:01:06 +05:30