apache / apache/ponymail

cross.lua definition of nginx port

Open
#219 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
80
Forks
32
PR merge metrics
No merged PRs in 30d

Description

It looks like the port [1] can be obtained by using:

ngx.var.server_port

[1] http://nginx.org/en/docs/http/ngx_http_core_module.html#var_server_port

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading cross.lua and the referenced nginx documentation for ngx.var.server_port. Confirm how the current port is defined there, then update the definition to use the nginx-provided value; done means the cross.lua port reflects the configured server port.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.