hassio-addons/addon-nginx-proxy-manager

Custom location / addon_configs reference

RNZ01 opened this issue · 1 comments

Problem/Motivation

Hey there,
I just updated my NPM and I'm trying to figure out the correct path for referencing my static HTML

Before updating:

root /ssl/nginxproxymanager/websites/rami;
location / {
  autoindex             on;
  autoindex_exact_size  on;
  autoindex_format      html;
  autoindex_localtime   on;
}

after updating I would like to access the addon_configs

root /addon_configs/a0d7b954_nginxproxymanager/websites/rami;
location / {
  autoindex             on;
  autoindex_exact_size  on;
  autoindex_format      html;
  autoindex_localtime   on;
}

Unfortunately, it is not finding the index.html file so I'm getting a 404 error.

Expected behavior

I expect to be able to reference the new addon_configs folder

Actual behavior

404 Error even after trying:

  • root /addon_configs/a0d7b954_nginxproxymanager/websites/rami;
  • root ./addon_configs/a0d7b954_nginxproxymanager/websites/rami;
  • root addon_configs/a0d7b954_nginxproxymanager/websites/rami;
  • root ~/addon_configs/a0d7b954_nginxproxymanager/websites/rami;

I always get:
Screenshot 2024-02-12 at 11 59 21
Screenshot 2024-02-12 at 12 02 33

Steps to reproduce

  • Create a new host.
  • Create a static HTML file in the addon_configs folder
  • Try to set Custom Nginx Configuration root

Proposed changes

I'm I doing something wrong? Please help me

Ok, I'm closing this issue, and here is the solution for my issue hopefully it will help someone.

  • Place your static HTML in /addon_configs/xxxxxxx_nginxproxymanager/websites/example/index.html
  • Reboot HA
  • Apply the following path:
Screenshot 2024-02-12 at 12 29 41

🎉