Matt Ceroni
01/02/2023, 9:53 PMapp:
# Should be the same as backend.baseUrl when using the `app-backend` plugin.
baseUrl: <https://services.internal/backstage>
backend:
# Note that the baseUrl should be the URL that the browser and other clients
# should use when communicating with the backend, i.e. it needs to be
# reachable not just from within the backend host, but from all of your
# callers. When its value is "<http://localhost:7007>", it's strictly private
# and can't be reached by others.
baseUrl: <https://services.internal/backstage>
If I navigate to the main URL I just get a blank page. If I looked at the returned HTML
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open platform for building developer portals"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Scaffolded Backstage App</title><script defer="defer" src="/static/runtime.ca7de487.js"></script><script defer="defer" src="/static/module-material-ui.d6133835.js"></script><script defer="defer" src="/static/module-lodash.2cb4e330.js"></script><script defer="defer" src="/static/module-date-fns.09dcdd7d.js"></script><script defer="defer" src="/static/module-backstage.958f85a5.js"></script><script defer="defer" src="/static/module-yaml.bcdcfe65.js"></script><script defer="defer" src="/static/module-material-table.a69dfac1.js"></script><script defer="defer" src="/static/module-luxon.709b2632.js"></script><script defer="defer" src="/static/module-octokit.37e435bf.js"></script><script defer="defer" src="/static/module-zod.c5bfa0d3.js"></script><script defer="defer" src="/static/module-react-dom.fcbc6a60.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.1bd1bde2.js"></script><script defer="defer" src="/static/module-remix-run.df093bf6.js"></script><script defer="defer" src="/static/vendor.ca7de487.js"></script><script defer="defer" src="/static/main.ca7de487.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
You can see that none of the URL are correctly rendered with the sub-path.Asaf Erlich
01/02/2023, 10:24 PMMatt Ceroni
01/03/2023, 5:10 PMNote that the baseUrl should be the URL that the browser and
and assumed that means the the URL I put into my browser to access the backstage UI.
Right now I am just trying to get basic setup done and expose the UI (deployed in Kubernetes) through an ingress and the URL at which that is configured (in the ingress controller) is https://services.internal/backstage.
How would I configure that URL so that backstage correctly serves paths?Asaf Erlich
01/03/2023, 5:11 PMMatt Ceroni
01/03/2023, 5:15 PMAsaf Erlich
01/03/2023, 5:15 PMMatt Ceroni
01/03/2023, 5:15 PMAsaf Erlich
01/03/2023, 5:15 PMMatt Ceroni
01/03/2023, 5:16 PMAsaf Erlich
01/03/2023, 5:16 PMMatt Ceroni
01/03/2023, 5:16 PMAsaf Erlich
01/03/2023, 5:16 PMMatt Ceroni
01/03/2023, 5:17 PMAsaf Erlich
01/03/2023, 9:26 PMfd "app-config.*"
app-config.local.yaml
app-config.yaml
config/app-config.local.yaml
config/app-config.production.yaml
config/app-config.stage.yaml
The first is actually a symlink to the one inside the config folder. In the startup command for the container we actually pass in the flags --config app-config.yaml --config config/app-config.<env>.yaml
and we have different ones for stage and prod.