PromucFlow_constructor/deploy/docker/fs/opt/appsmith
Shrikant Sharat Kandula caf1d3f95c
chore: Auto-fix invalid custom domain (#29550)
Defining custom domain as `https://example.com/` is invalid.

It should be just the domain, just `example.com`. But turns out a lot of
our users have the incorrect configuration, and our previous stack of
NGINX+Certbot was able to ignore this and serve without HTTPS. This PR
brings that behaviour back.


## Test performed

Have Appsmith running on an EC2 instance, and a domain `correct.com`
with an A-record pointed to this EC2 instance.

In the instance, we run Appsmith with `APPSMITH_CUSTOM_DOMAIN` set to
`wrong.com`. Caddy will obviously fail to provision the cert, and so we
expect it to accept connections on just HTTP.

So hitting `curl -i http://correct.com` produced a 200 with the HTML
response, and not a 308 with a redirect. Before the changes from this
PR, the same curl command produced a 308 with a redirect to
`https://correct.com`, which fails with a certificate error.

Next up, we run Appsmith with `APPSMITH_CUSTOM_DOMAIN` set to
`correct.com`. Caddy will succeed in provisioning a cert, and so we
expect HTTP URLs to be redirected to HTTPS.

So hitting `curl -i http://correct.com` produces a 308 redirect to
`http://correct.com` which then works fine, since Caddy now has the cert
for the domain.
2023-12-13 13:45:04 +05:30
..
templates chore: Improve log formatting for verbose logs (#29429) 2023-12-07 19:56:30 +05:30
utils chore(deps-dev): bump @babel/traverse from 7.19.4 to 7.23.2 in /deploy/docker/fs/opt/appsmith/utils (#28168) 2023-11-06 16:32:16 +05:30
auto_heal.sh chore: Fix auto heal script crash if curl times out (#29472) 2023-12-08 15:22:26 +05:30
caddy-reconfigure.mjs chore: Auto-fix invalid custom domain (#29550) 2023-12-13 13:45:04 +05:30
entrypoint.sh fix: frame-ancestors env variable being overridden (#29521) 2023-12-11 19:25:12 +05:30
healthcheck.sh chore: Remove RTS Health check in Docker container 2023-10-21 09:58:40 +05:30
install_docker.sh chore: replaced decommisioned urls with new ones (#27786) 2023-10-05 12:07:18 +05:30
mongodb-fixer.sh chore: Update embedded MongoDB Schema version (#27985) 2023-10-17 06:28:45 +05:30
pull_resource.sh
run-caddy.sh chore: Set client's version in index.html at runtime (#29318) 2023-12-06 06:57:22 +05:30
run-java.sh fix: Get Java from GitHub release artifacts directly (#27862) 2023-10-06 19:38:19 +05:30
run-postgres.sh fix: Remove explicit stats directory for embedded Postgres 2023-10-17 15:00:12 +05:30
run-starting-page-init.sh feat: Caddy (#28081) 2023-12-05 10:47:36 +05:30
run-with-env.sh feat: Support running as a non-root user (#28290) 2023-11-15 11:28:25 +05:30
start_app.sh
starting-page-init.py feat: Caddy (#28081) 2023-12-05 10:47:36 +05:30
update-and-restart-supervisor.sh