Tailscale is working real good from my cell phone to my home with WordPress on it. I got T-Mobile home Internet now. No ports open so Tailscale works good cell phone to WordPress in my home.
But I want to add https. That is how I had it before and links in the WordPress still have https so they don’t show up when I just use http that works now.
Worked on this for weeks and just get errors trying to get this to work. Hope some one can help.
I don’t think so how would I do that. I did get a Site Key and Secret Key from Cloudflare were I got my domain name linked to the 100 IP got for my Ubuntu server with Tailscale. That WordPress is installed on.
I installed lets encrypt certificates on wordpress in a VM using snap to install Certbot. Then I used Certbot to do a DNS challenge to Cloudflare (my DNS registrar/DNS provider) and got Let’s Encrypt certs for the instance of Wordpress. You have to enter an A record in your DNS provider for the internal IP of your Wordpress server for this method to work. In this case I ran the cloudflared connector on another VM in docker.
For Wordpress running in Docker, I added Nginx to the docker compose for Wordpress, and used Nginx to do the DNS challenge and provide a cert for wordpress runninng in Docker. In this case I made sure the cloudflared was running in the same stack/docker instance, AND you have to be sure cloudflare d is on a common bridge network with Wordpress and Nginx
In both cases I still use a Cloudflare tunnel to expose Wordpress to the internet. When configuring the tunnel, be sure to select HTTPS (instead of HTTP) on the back end connection to your service. This way you will have encrypted traffic internal to your network and external to the world.
I got my domain name on CloudFlare and the 2nd command will give you a long key that you have to put in your domain as a txt and then it will know it’s your and set up the https for you.
Hope they can add this to Tailscale to make it easy to use your own domain name with https.
Allso I got my 100 Tailscale ip on Cludflare to match my domain name.
Could of open your .bash_history for the commands you did. But wow easy when you know how just 3 commands.
apt install cerbot
certbot --manual --preferred-challenges dns certonly -d rday.me
certbot --apache