Install on local ok, want to Custom domain + HTTPS

Hi, I’m interested in Twake, I’ve install on local ok follow by https://doc.twake.app/installation, I want to Custom domain + HTTPS, I follow https://doc.twake.app/configuration/custom-domain-and-https but can not find this folder to edit /etc/nginx/site-enabled/default. I’ve still follow the last doc and my site only go online by mydomain.com:8000 and not https and run very slow. How can I do to put online with Custom domain + HTTPS?

I’ve tried to use this command to find nginx: find / -name “nginx” and there are so many folder like this, what’s next step I can do to use custom domain and https?

/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/var/lib/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/var/log/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/etc/init.d/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/etc/default/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/etc/logrotate.d/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/etc/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/etc/ufw/applications.d/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/usr/sbin/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/usr/share/doc/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/usr/share/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/merged/usr/lib/nginx
/var/lib/docker/overlay2/cf40bd5939b6cd97ff841cfc190d1e4b707db45e2dae4062f0d90a623dbfbc8d/diff/var/lib/nginx
/var/lib/docker/overlay2/01a695b14e69b6556d951c100d5ad45c4d406405b7b070f1ac2bf8efe076446d/diff/etc/nginx
/var/lib/docker/overlay2/5ca2199d7299d90ba59b6ae69dfb017a148999f7686440d047f1685725f92de4/diff/etc/nginx
/var/lib/docker/overlay2/f5ea5e6787b25c12c1a158cee090496b09a99e49853ab34441874553060823c9/diff/etc/nginx
/var/lib/docker/overlay2/f86b9b4750c8e1cda171e8d4cd9ff39c8f12642cf606fa4269cdb1cc268ed274/diff/etc/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/var/lib/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/var/log/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/etc/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/etc/init.d/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/etc/default/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/etc/logrotate.d/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/etc/ufw/applications.d/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/usr/sbin/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/usr/share/doc/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/usr/share/nginx
/var/lib/docker/overlay2/14f84ea016e6797117eb0fd4a89a8c3e3fe0d35643badcb83a8c9ab65ccb2def/diff/usr/lib/nginx
/root/Twake/twake/docker-data/logs/nginx

Hello @huuich and welcome to the Twake Community.

So the process described in the installation manual is to install a brand new nginx without docker and configure it to reverse proxy to the port 8000 of the machine.

The configuration needed for this reverse proxy is given on this link you already seen https://doc.twake.app/configuration/custom-domain-and-https

Once you have your own nginx with Https configured, then you can start the docker-compose.
It will go like this: host-nginx(Your configuration) -> docker-nginx(port 8000) -> php/websokcets/etc

Once this is done, you should be able to access https://yourdomain/ajax/core/version (it give a json output with some server information)
After this step, you must configure the Parameters.php and environment.ts, let me know when you are on this step!

2 Likes

@romaric Thanks for reply, can I use Nginx Proxy (docker image jwilder/nginx-proxy) is an auto-configurable reverse-proxy that routes traffic from your public IP to Docker containers on the host. and LetsEncrypt Nginx Proxy Companion (docker image jrcs/letsencrypt-nginx-proxy-companion) automates the process of creating, renewing and using Let’s Encrypt certificates for your Docker containers.
To install twake with my domain and https?

Hello can you help me to install twake

You can follow this guide https://doc.twake.app/installation and this topic to install Twake on Docker behind Apache Proxy

Once this is done, you should be able to access https://yourdomain/ajax/core/version (it give a json output with some server information)
After this step, you must configure the Parameters.php and environment.ts, let me know when you are on this step!

—> My information off my site is:

{"data":{"ready":true,"auth_mode":["internal"],"auth":{"internal":{"disable_account_creation":null,"disable_email_verification":true,"use":true}},"elastic_search_available":true,"help_link":"https:\/\/community.twake.app","websocket_public_key":"-----BEGIN PUBLIC KEY-----\nMIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgG65NWZFnj+9op68VRBN\/WtG9eRp\nMVyQiVAWSsShxIK0xLUDac4B9wADvnqZqyylFZpRsVLeXEo5FJMmmPG9OYRed5un\n0ulXWTEBBi5ON2ku91EFx1+02sd0Cbkc0hwy2A3mTPU5ykF2MqH9mUf2SQ5yhhGh\np3UZN60QZtJwmWDbAgMBAAE=\n-----END PUBLIC KEY-----","branding":{"name":"Twake","enable_newsletter":false}},"_cookies":[]}

How can I improve it? I can access from my domain but Seems applications and connectors not full like n8n not there? https://doc.twake.app/how-to-use-it/applications/connectors/n8n . n8n is reason take me here, how can I connect n8n with my twake site?