Can't get HA add-on Ingress to work, what am I doing wrong?

I have an add-on which has a web-server on port 5052 and if in the config.yaml for the add-on I set:

ports:
5052/tcp: 5052
ports_description:
5052/tcp: Web interface

Then the web interface works fine on homeassistant.local:5052

However I want to support ingress so in the config.yaml I set:

ingress: true
ingress_port: 5052

When I re-install the add on and click on the ingress it says its unavailable. What am I missing?

Hi Trefor Southwell,

This post might help you.
How to add custom buttons to the side toolbar.

Okay, problem solved - the web interface needs to have relative links (./config) rather than absolute ones (/config)!

what did you mean by :

the web interface needs to have relative links (./config) rather than absolute ones (/config)!

I too want my first HA Addon I made to use Ingress to point to the internal Addon’s webserver on port 8080.

My config.yaml for my addon looks like this :

name: "TestAddon"
version: "latest"
slug: "testAddon"
description: "Test Addon"
arch:
  - amd64
init: false
map:
  - type: share   
    read_only: False
    path: /MySharedVolume
ports:
  8080/tcp: 8080
port_description:
  8080/tcp: Web interface
ingress: true
ingress_port: 8080
ingress_root: "/"
#webui: "http://[HOST]:[PORT:8080]"
#watchdog: "http://[HOST]:[PORT:8080]/"
startup: application
panel_admin: true
panel_icon: "mdi:desktop-classic"
panel_title: "MyTestAddon"
image: "mytestaddonfirm/testaddon"

why did you add :

ingress_root: "/" 

and not :

webui: "http://[HOST]:[PORT:8080]"

If I open via http://homeassitant:8080 I can reach my Addon website.
But if I try to open in with Open UI (ingress) then I get a “404: Not found” page

What am I doing wrong ?
This error is with both my duckdns url (https and then HA reverse proxy manager) or my local http://homeassisant:8123 .
In Supervisor log I get no errors anymore.

I made a similar ingress.conf file in my addon folder:

server {
    listen 8080;
    allow  172.30.32.2;
    deny   all;
}

Addon is located locally under \homeassistant\addons

say for example I can run http://homeassistant:8080/
or http://homeassistant:8080/webserver
how do I configure both urls above in these addon settings (webio or ingress_root ?)

Secondl: If I want to change my Addon files I each time have to uninstalled my addon, refresh page and “check for repo changes” and then the full IMG docker is downloaded again, is’t there a quicker way to change my Addon files without the full reinstall ?

my configuration.yaml looks like this:

http:
  ip_ban_enabled: true
  login_attempts_threshold: 3
  #enabled below for NGINX reverse proxy manager
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1
    - 172.16.0.0/12
    - ::1
    - 172.30.33.0/24   # test for 172.30.33.16

thx in advance