Skip to content

Custom domain names

Xiao Jia edited this page Nov 8, 2023 · 5 revisions

In addition to nsbox.local, you may also use a custom domain name for your installation. In this tutorial, we will be using box.corp.example.com as the custom domain name.

Create DNS records

Add an A record for box.corp.example.com to point to your server's public IP address.

If you want to use Let's Encrypt to get HTTPS certificates, you may also want to set up other records. Read their documentation for more information.

HTTP certificates

By default the nsbox binary generates a self-signed certificate under /home/nsbox/workdir/certs.

If you already have something under /home/nsbox/workdir/certs for a different domain name, remove them.

If you want to use your own certificate, copy to /home/nsbox/workdir/certs/nsbox.crt and /home/nsbox/workdir/certs/nsbox.key.

Restart the service

Rerun your service with

./nsbox -workdir /home/nsbox/workdir -hostname box.corp.example.com

Now you can access the following links:

  • Redmine: https://box.corp.example.com:9441
  • Gerrit: https://box.corp.example.com:9442
  • Buildbot: https://box.corp.example.com:9443
  • Mailpit: https://box.corp.example.com:9444

If you have a systemd service file, change that as well. Remember to run systemctl daemon-reload.

Clone this wiki locally