Change to sample nginx.conf #4085

Closed
opened 2025-12-29 18:33:02 +01:00 by adam · 1 comment
Owner

Originally created by @alanNutanix on GitHub (Sep 9, 2020).

Environment

  • Python version: 3.7.9
  • NetBox version: 2.9.3

Proposed Functionality

Change only to sample nginx.conf
Add these two lines into the location portion:

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;

Use Case

If someone is using netbox with a double proxy, this is what is needed on the outer one.
(My use case: Using netbox in the docker container, with nginx on the vm to handle SSL certs)

Database Changes

None

External Dependencies

None

Originally created by @alanNutanix on GitHub (Sep 9, 2020). ### Environment * Python version: 3.7.9 * NetBox version: 2.9.3 ### Proposed Functionality Change only to sample nginx.conf Add these two lines into the location portion: ``` proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; ``` ### Use Case If someone is using netbox with a double proxy, this is what is needed on the outer one. (My use case: Using netbox in the docker container, with nginx on the vm to handle SSL certs) ### Database Changes None ### External Dependencies None
adam closed this issue 2025-12-29 18:33:02 +01:00
Author
Owner

@kobayashi commented on GitHub (Sep 23, 2020):

Thank you for submitting your idea. Unfortunately, the proposed feature falls outside the scope of functionality that NetBox aims to provide. As NetBox is an open source application with limited development resources and a persistent backlog of existing work, it is crucial that we limit the scope of development to ensure it remains a maintainable project for many years to come. HTTP configuration especially depends on each user and we would like to provide just simple case of configuration to avoid issues in nginx or apache themselves. Thank you for your understanding.

@kobayashi commented on GitHub (Sep 23, 2020): Thank you for submitting your idea. Unfortunately, the proposed feature falls outside the scope of functionality that NetBox aims to provide. As NetBox is an open source application with limited development resources and a persistent backlog of existing work, it is crucial that we limit the scope of development to ensure it remains a maintainable project for many years to come. HTTP configuration especially depends on each user and we would like to provide just simple case of configuration to avoid issues in nginx or apache themselves. Thank you for your understanding.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4085