-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
Support user directive of Nginx. From #2180
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ proxy_listen = 0.0.0.0:8000 | |
proxy_listen_ssl = 0.0.0.0:8443 | ||
admin_listen = 0.0.0.0:8001 | ||
admin_listen_ssl = 0.0.0.0:8444 | ||
nginx_user = nobody | ||
This comment has been minimized.
Sorry, something went wrong.
depay
Author
Contributor
|
||
nginx_worker_processes = auto | ||
nginx_optimizations = on | ||
nginx_daemon = on | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
return [[ | ||
user ${{NGINX_USER}}; | ||
worker_processes ${{NGINX_WORKER_PROCESSES}}; | ||
daemon ${{NGINX_DAEMON}}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,6 +126,7 @@ describe("NGINX conf compiler", function() | |
describe("compile_nginx_conf()", function() | ||
it("compiles a main NGINX conf", function() | ||
local nginx_conf = prefix_handler.compile_nginx_conf(helpers.test_conf) | ||
assert.matches("user nobody;", nginx_conf, nil, true)) | ||
This comment has been minimized.
Sorry, something went wrong.
subnetmarco
Member
|
||
assert.matches("worker_processes 1;", nginx_conf, nil, true) | ||
assert.matches("daemon on;", nginx_conf, nil, true) | ||
end) | ||
|
1 comment
on commit f3572ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since nobody defaults to nobody nobody I don't really think this is a must have. It's also documented in the comment that this is the behavior. Fine with adding it though.
from the text I get that the default is
nobody nobody
as group == name if omitted, I think that the comment line should be updated like that eg.