Add NAS via nginx

I’m trying to add my nas to my nginx config (using the default nginx addon " NGINX Home Assistant SSL proxy"), accessing HA works fine.

server {
  location /nas {
    proxy_pass http://192.168.130.142:5000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }
}

This config at /share/nginx_proxy_nas.conf just gives a 404. What could be wrong ? Looking at the logs, I don’t see anything saying the config file was loaded.

s6-rc: info: service legacy-services: stopping

s6-rc: info: service legacy-services successfully stopped

s6-rc: info: service crond: stopping

[14:51:00] INFO: Service crond exited with code 256 (by signal 15)

s6-rc: info: service crond successfully stopped

s6-rc: info: service nginx: stopping

[14:51:00] INFO: Service nginx exited with code 0 (by signal 0)

s6-rc: info: service nginx successfully stopped

s6-rc: info: service legacy-cont-init: stopping

s6-rc: info: service legacy-cont-init successfully stopped

s6-rc: info: service fix-attrs: stopping

s6-rc: info: service fix-attrs successfully stopped

s6-rc: info: service s6rc-oneshot-runner: stopping

s6-rc: info: service s6rc-oneshot-runner successfully stopped

s6-rc: info: service s6rc-oneshot-runner: starting

s6-rc: info: service s6rc-oneshot-runner successfully started

s6-rc: info: service fix-attrs: starting

s6-rc: info: service fix-attrs successfully started

s6-rc: info: service legacy-cont-init: starting

s6-rc: info: service legacy-cont-init successfully started

s6-rc: info: service nginx: starting

s6-rc: info: service nginx successfully started

s6-rc: info: service crond: starting

s6-rc: info: service crond successfully started

s6-rc: info: service legacy-services: starting

[14:51:43] INFO: Merging options & variables for template

s6-rc: info: service legacy-services successfully started

[14:51:43] INFO: Generating nginx.conf from template in /etc/nginx/nginx.conf.gtpl

[14:51:44] INFO: Running nginx...

And here’s the addon config

domain: *.duckdns.org
hsts: max-age=31536000; includeSubDomains
certfile: fullchain.pem
keyfile: privkey.pem
cloudflare: false
customize:
  active: true
  default: nginx_proxy_default*.conf
  servers: nginx_proxy*.conf
real_ip_from: []