Project

Profile

Help

Story #6914

open

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

Added by Pixelfool over 4 years ago. Updated over 4 years ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
Installer - Moved to GitHub issues
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;
  ... 
}

No data to display

Also available in: Atom PDF