This server has two jobs:
- To create NGINX config files for customer custom domains
- To proxy requests from NGINX to the Cloudflare worker that will render the customer's site
The server runs on Digital Ocean. A simple express server with admin route protection is called from the Orbiter backend API to generate custom domains and SSL records.
The admin token is stored as an .env and the request to this server must use that token as a Bearer token in the request.
You can manually access the Digital Ocean droplet via SSH. Once SSH'd in, you can check on site configs manually by running:
cat /etc/nginx/sites-available/${customer_custom_domain} // orbiter.host for example
You can list all the sites with custom domains by running:
ls /etc/nginx/sites-available/