hassio-addons / addon-nginx-proxy-manager

Nginx Proxy Manager - Home Assistant Community Add-ons
https://addons.community
MIT License
330 stars 103 forks source link

Custom location / addon_configs reference #539

Closed RNZ01 closed 7 months ago

RNZ01 commented 7 months ago

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:

I always get:

Screenshot 2024-02-12 at 11 59 21 Screenshot 2024-02-12 at 12 02 33

Steps to reproduce

Proposed changes

I'm I doing something wrong? Please help me

RNZ01 commented 7 months ago

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

🎉