Custom base URL
Configure UI Bakery for a custom base URL
Docker Compose and standalone NGINX
If you have set up your instance using Docker Compose, the easiest way to run UI Bakery under a base URL is to configure an NGINX server as a reverse proxy for your instance. The example below demonstrates how to run UI Bakery at http://example.com/bakery
1. Install NGINX
2. Create an NGINX configuration file
Create an NGINX configuration file at /etc/nginx/sites-enabled/example.com
with the following content:
3. Update environment variables
Update the following UI Bakery environment variables:
4. Restart UI Bakery and NGINX
After updating the configuration and environment variables, restart NGINX and UI Bakery:
Kubernetes
If you're already running UI Bakery on Kubernetes and want to relocate it under a specific path, such as /bakery
, follow these steps:
1. Modify gateway configuration file
Update your ui-bakery-gateway.yaml
file. Change the spec
type from LoadBalancer
to ClusterIP
2. Add ingress-nginx
Install ingress-nginx
using Helm:
3. Create UI Bakery ingress configuration
Create a ui-bakery-ingress.yaml
configuration file with the following content:
4. Update UI Bakery config
Adjust the following UI Bakery environment variables:
5. Restart your instance
Apply changes with:
Last updated