Skip to content

Commit a951cad

Browse files
committed
Change NGINX_VHOST_PORT to NGINX_SERVER_PORT
1 parent f03dbc2 commit a951cad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ All images built for `linux/amd64` and `linux/arm64`
112112
| `NGINX_SERVER_NAME` | `default` | |
113113
| `NGINX_SERVER_ROOT` | `/var/www/html` | |
114114
| `NGINX_SERVER_TOKENS` | `off` | |
115+
| `NGINX_SERVER_PORT` | `80` | |
115116
| `NGINX_SET_REAL_IP_FROM` | | |
116117
| `NGINX_SET_REAL_IPS_FROM` | | json array as string |
117118
| `NGINX_STATIC_404_TRY_INDEX` | | |
@@ -133,7 +134,6 @@ All images built for `linux/amd64` and `linux/arm64`
133134
| `NGINX_UPLOAD_PROGRESS` | `uploads 1m` | |
134135
| `NGINX_USER` | `nginx` | |
135136
| `NGINX_VHOST_NO_DEFAULTS` | | |
136-
| `NGINX_VHOST_PORT` | `80` | |
137137
| `NGINX_VHOST_PRESET` | `html` | |
138138
| `NGINX_WORKER_CONNECTIONS` | `1024` | |
139139
| `NGINX_WORKER_PROCESSES` | `auto` | |

templates/vhost.conf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include upstream.conf;
22

33
server {
4-
listen {{ getenv "NGINX_VHOST_PORT" "80" }} default_server{{- if getenv "NGINX_HTTP2" }} http2{{- end }};
4+
listen {{ getenv "NGINX_SERVER_PORT" "80" }} default_server{{- if getenv "NGINX_HTTP2" }} http2{{- end }};
55
server_name {{ getenv "NGINX_SERVER_NAME" "default" }};
66

77
root {{ getenv "NGINX_SERVER_ROOT" "/var/www/html" }};

0 commit comments

Comments
 (0)