Skip to content

Netbox Static Media Failure #7511

Answered by apellini
apellini asked this question in Q&A
Discussion options

You must be logged in to vote

I have solved.
For reference you have to perform following commands:
chown -R nginx media
chown -R nginx static
Where nginx is the user used by nginx service (if you have another change with appropriate), instead if you want to user the system account netbox you have to change properly /etc/nginx/nginx.conf change the directive user with netbox instead of nginx.
Nginx configuration provided works only on direct server where netbox is installed because it needs access to /opt/netbox/netbox/media and static, so if you have a remote NGINX you have to configure this one as NGINX reverse proxy that point to nginx socket configure on netbox server.
I hope that is useful.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by apellini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #7509 on October 08, 2021 18:10.