easypanel-io / templates

https://easypanel-templates.netlify.app/
129 stars 103 forks source link

Add plane template #501

Open marktopper opened 8 months ago

marktopper commented 8 months ago

This templates allows to setup Plane v0.16-dev.

Utilities Addition

In this PR (commit 4c7cac0), I also updated the randomPassword utility method, to support a optional length parameter, to generate longer passwords.

Why customize

This template uses file mounts to overwrite some logic in the proxy service.

Template Issues

These was all resolved in 2ecaedb, applying the new EASYPANEL_HOST variable available in EasyPanel v1.13.5.

~We are using the $(EASYPANEL_DOMAIN) option to automatically generate the domain names for the proxy and minio services. However, since this variable includes the service name, it applies the wrong domain names below:~

  1. ~The proxy service domain name, should ideally be PROJECTNAME.INSTANCE.easypanel.host, and not PROJECTNAME-proxy.INSTANCE.easypanel.host.~
  2. ~The WEB_URL environment in api, beat-worker and worker service should match the above domain name. Right now it applies the service name (api, beat-worker and worker) to it.~
  3. ~The domain names for the minio service, should ideally be something like one of the following options:~ ~- PROJECTNAME-minio.INSTANCE.easypanel.io + PROJECTNAME-minio-console.INSTANCE.easypanel.io~ ~- PROJECTNAME-minio.INSTANCE.easypanel.io + console.PROJECTNAME-minio.INSTANCE.easypanel.io~
  4. ~The AWS_S3_ENDPOINT_URL environment in api, beat-worker and worker service should match the above domain name. Right now it applies the service name (api, beat-worker and worker) to it.~

Optimizations

  1. Currently, I was not able to get the api, beat-worker and worker able to connect to the minio service using the internal hostname, therefor a domain for the minio service API is required, while it would be safer to use a internal endpoint for this.
  2. Ideally, it would be nice if makeplane/proxy supported setting the hostnames by environment variables, then we can remove the custom nginx configuration and the custom entrypoint.

But this will do for now.

netlify[bot] commented 8 months ago

Deploy Preview for easypanel-templates ready!

Name Link
Latest commit 7ad680bd08ffed9d2b202cfcc00047e31fd5b9e1
Latest deploy log https://app.netlify.com/sites/easypanel-templates/deploys/6628dd3c125bfa00080bbfa6
Deploy Preview https://deploy-preview-501--easypanel-templates.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

marktopper commented 8 months ago

@deiucanta This has been updated to use the new EASYPANEL_HOST variable + the addition of more configuration options.