How to setup Outline Server with a hostname?

Hello, I was wondering is there anyone who successfully configured the Outline Server with a hostname?

I tried to set up a personal Outline Server on a Vultr VPS following the command from: https://github.com/Jigsaw-Code/outline-server/tree/master/src/shadowbox, specifically,

sudo bash -c "$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)" install_server.sh --hostname=myserver.com

The installation process was finished without any error. (I also added related ports to firewall rules via UFW and Vultr’s Firewall. However, when I paste the installation output (https://myserver.com:port/xxxxx) back to the Manager, it always shows:

Unable to connect to your Outline Server

Your Outline Server was installed correctly, but we are not able to connect to it. Most likely this is because your server’s firewall rules are blocking incoming connections. Please review them and make sure to allow incoming TCP connections on ports ranging from 1024 to 65535.

Instead, if I use the simple set up command without "–hostname=myserver.com", it will work perfectly with an apiUrl likes https://ip:port/xxxxx even without set firewall rules.

BTW, my domain is managed at Cloudflare.

So far I guess it’s a DNS issue. Is that correct? Or anyone knows how to solve it?

Any help is appreciated.

You need to configure your domain to point to your server IP address.

Instructions with Google Domains here: https://reddit.com/r/outlinevpn/wiki/index/floating_ips

Wow! This works great! :+1:

So, in Cloudflare, add an “A” record for the extra subdomain and set its Proxy status to “DNS only”.

but dns only does not protect our ip server

Thanks, as u/pm-me-your-nenen pointed out, in Cloudflare, I still need to add one more un-proxied A record to make it work for me, although Cloudflare says it will expose my server’s IP behind the domain. :rofl: