directory index of "/usr/share/nginx/html/" is forbidden
when mounting a file into nginx container
#2691
Labels
needs-triage
applied to all new customer/user issues. Removed after triage occurs.
Which image/versions are related to this issue/feature request?
Image: nginx:1.25
Issue/Feature description
Whilst we wait for #435 we are instead attempting to mount a configmap as a file called
config.js
into the nginx container under directory/usr/share/nginx/html/
which the HTML code then uses. However we get thedirectory index of "/usr/share/nginx/html/" is forbidden
error, I've tried usingfsGroup: 65532
and all other combinations but cannot seem to get it to work.Interestingly when we try this locally using the same image, we don't get problems when using docker volumes like so:
docker run -v $(pwd)/config.js:/usr/share/nginx/html/config.js -p 8080:8080 test-nginx-service
.I can provide code snippets if needed, I just thought I'd raise the above incase there was an easy answer that someone may be aware of
The text was updated successfully, but these errors were encountered: