Skip to content

Instantly share code, notes, and snippets.

View noorani786's full-sized avatar

Nizar Noorani noorani786

View GitHub Profile
@noorani786
noorani786 / nginx.overrides
Created September 23, 2017 23:24 — forked from sheharyarn/nginx.overrides
Restart / Reload Nginx without Entering Sudo Password
# Enter this command to create a sudoers override/include file:
# sudo visudo -f /etc/sudoers.d/nginx.overrides
# (Make sure you actually have this in your /etc/sudoers - Run `sudo visudo` to check)
# #includedir /etc/sudoers.d
# This file assumes your deployment user is `deploy`
# Nginx Commands
Cmnd_Alias NGINX_RESTART = /usr/sbin/service nginx restart