Skip to content

Update nginx conf to add custom docker ip range and allow it to be set by env variable - #122

Merged
turegjorup merged 1 commit into
developfrom
feature/Update_set_real_ip_from_block
Nov 25, 2025
Merged

turegjorup merged 1 commit into
developfrom
feature/Update_set_real_ip_from_block

Conversation

@turegjorup

@turegjorup turegjorup commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor

https://leantime.itkdev.dk/dashboard/home?tab=ticketdetails#/tickets/showTicket/4868

  • Updated nginx templates to include the 192.168.38.0/23 range for set_real_ip_from
  • Done as set_real_ip_from ${NGINX_SET_REAL_IP_FROM:-192.168.39.0/24} to allow for configurability

Have testet on a STG server. Removing set_real_ip_from from the http block and only having it in the ´server` block doesn't change the behavior. The correct client IP is still logged for requests.

Bonus: disableDashboardAd: true should work (@see https://doc.traefik.io/traefik/reference/install-configuration/api-dashboard/#configuration-options)

@turegjorup
turegjorup requested a review from cableman November 25, 2025 12:11
@turegjorup turegjorup self-assigned this Nov 25, 2025
@turegjorup
turegjorup merged commit 89a78c6 into develop Nov 25, 2025
18 checks passed
@turegjorup
turegjorup deleted the feature/Update_set_real_ip_from_block branch November 25, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants