Would it be possible to use the addon on HA as a cloudflare tunnel for docker containers? #355
-
Hi I have had trouble installing cloudflare on docker, but managed installing it on HA much more easily. Is it possible or am I totally wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You can add any additional_host that you like. So for example if your docker container is running a http service, you can simply add this service and the IP in the additional_hosts array and have the proxy route your traffic. Please let me know if this makes sense and if you have any questions. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. -Is the array supposed to look like this: |
Beta Was this translation helpful? Give feedback.
Cloudflare does not create individual tunnels for all hosts, but routes multiple hosts through the same tunnel. All the domains should be part of the same site (so subdomains), if they are not, I am not sure if the authentication will be sufficient.
In case you are using multiple Sites, I suggest you switch to a remote managed tunnel, see description here.
Regarding the string: It is correct without the ". @elcajon maybe we should change the documentation accordingly, since I agree, this is misleading.