Deployment behind proxy on AKS

System Information
  • Strapi Version: 4.5.3
  • Operating System: Alpine
  • Database: Postgres
  • Node Version: 16
  • NPM Version:
  • Yarn Version:

Hello,

I have problems with my strapi instance on AKS behind a proxy.
I need to work like:
https://whatever.com/cms/ for the API
https://whatever.com/cms/admin for the admin panel.

I build the image with NODE_ENV production everytime there is a change in the code, and I build the admin panel always, so it should not be a problem.

The problem, as I’ve read others, is that the admin panel is not getting the resources correctly:

All the other things are working correctly. My configuration is:
server.js

module.exports = ({ env }) => ({
  host: env('HOST', '0.0.0.0'),
  port: env.int('PORT', 1337),
  app: {
    keys: env.array('APP_KEYS'),
  },
  url: env('PUBLIC_URL'),
});

admin.js unedited

My ingress configuration is something like:

          - path: /cms(/|$)(.*)
            pathType: Prefix
            backend:
              service:
                name: cms-backend
                port:
                  number: 80

My question is, how do I make the admin panel work?