-
Notifications
You must be signed in to change notification settings - Fork 1
Cloudflare Tunnel
Joshua1023 edited this page Oct 23, 2024
·
3 revisions
Suppose you have bought a domain name and set it up with Cloudflare.
Create a Cloudflare tunnel and install Cloudflare on the machine for deployment following the official guide.
In the Public Hostnames tab, choose a Domain and specify the 7 subdomains:
login
portal
bug
build
review
mail
x
Specify the service as https://127.0.0.1
.
Under Additional application settings, turn on No TLS Verify:
Select Save tunnel.
Note: When you create a tunnel, you can only add one public hostname. You can configure the created tunnel and add more public hostnames in the Public Hostnames tab.
After you add all domains, it will be like:
Modify ip_unprivileged_port_start
Follow the instructions in AlmaLinux or Fedora or RHEL and set the domain, subdomains and port when you run nsbox
:
./portal --workdir $PWD/workdir/ \
--hostname nsbox.app \
--login_domain login.nsbox.app \
--portal_domain portal.nsbox.app \
--bug_domain bug.nsbox.app \
--build_domain build.nsbox.app \
--review_domain review.nsbox.app \
--mail_domain mail.nsbox.app \
--cross_domain x.nsbox.app \
--port 443