Deployment behind proxy on AKS

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


I have problems with my strapi instance on AKS behind a proxy.
I need to work like: for the API 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:

module.exports = ({ env }) => ({
  host: env('HOST', ''),
  port:'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
                name: cms-backend
                  number: 80

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