Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx配置重载命令支持sudo #133

Open
chj9 opened this issue Sep 14, 2024 · 4 comments
Open

Nginx配置重载命令支持sudo #133

chj9 opened this issue Sep 14, 2024 · 4 comments

Comments

@chj9
Copy link

chj9 commented Sep 14, 2024

如果不开sudo就只能使用root账户,安全隐患比较大,建议命令加一个sudo的前缀

@mouday
Copy link
Collaborator

mouday commented Sep 17, 2024

支持自行配置的

@yykgit
Copy link

yykgit commented Sep 18, 2024

支持自行配置的

怎么自行配置?在哪里可以修改?

@kanganxi
Copy link

kanganxi commented Nov 4, 2024

同问,没找到配置的地方

@darius-gs
Copy link

同问,没找到配置的地方
环境变量中
environment:
- ALLOW_COMMANDS=sudo /usr/local/openresty/nginx/sbin/nginx -s reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants