Project

Profile

Help

Story #6914

nginx listen port and ip can not be configured with a variable

Added by Pixelfool 9 months ago. Updated 7 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
Installer
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
master
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Quarter:

Description

In an IPV6 environment, it is necessary to configure the port and IP address for binding.
In roles/pulp_webserver/templates/nginx.conf.j2, line 34, the configuration default is:

server { 
  listen 80 default deferred;
  ... 
}

One solution could be

server { 
  listen {{ pulp_nginx_bind }} default deferred;
  ... 
}

Expected result:

server { 
  listen [2001:db8::1]:80 default deferred;
  ... 
}

Please register to edit this issue

Also available in: Atom PDF