Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Add nginx options to KONFIG object#11433

Merged
cihangir merged 4 commits intomasterfrom
nginx/real_ip
Sep 27, 2017
Merged

Add nginx options to KONFIG object#11433
cihangir merged 4 commits intomasterfrom
nginx/real_ip

Conversation

@szkl
Copy link
Member

@szkl szkl commented Sep 22, 2017

Signed-off-by: Sonmez Kartal [email protected]

@szkl szkl requested a review from cihangir September 22, 2017 18:50
return 301 https://$host$request_uri;
}"""

createHttpOptions = (KONFIG) ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you combine this and createListenDirective together to have a unified functionality? (we can set the defaults for options.nginx for createListenDirective )

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

real_ip module directives are set in http block. It applies to everywhere functionally. Is this what you are suggesting?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a function in this file called "createListenDirective" which has pretty similar body.

Copy link
Contributor

@cihangir cihangir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unification needed

@szkl szkl force-pushed the nginx/real_ip branch 6 times, most recently from dc16238 to 0cabdec Compare September 26, 2017 21:00
Sonmez Kartal added 2 commits September 27, 2017 00:39
@szkl szkl force-pushed the nginx/real_ip branch 3 times, most recently from 493cbe8 to bd5331f Compare September 26, 2017 23:11
Sonmez Kartal added 2 commits September 27, 2017 02:18
@szkl
Copy link
Member Author

szkl commented Sep 26, 2017

Updated.

@cihangir cihangir merged commit 099e9e2 into master Sep 27, 2017
@cihangir cihangir deleted the nginx/real_ip branch September 27, 2017 22:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants