[Unit]
Description=A high performance web server and a reverse proxy server
After=network.target network-online.target nss-lookup.target

[Service]
Type=simple

ExecStart=/usr/bin/nginx -c {{.chezmoi.homeDir}}/.config/nginx/nginx.conf -g 'pid ${RUNTIME_DIRECTORY}/nginx.pid;'
ExecReload=/usr/bin/nginx -c {{.chezmoi.homeDir}}/.config/nginx/nginx.conf -g 'pid ${RUNTIME_DIRECTORY}/nginx.pid;' -s reload
KillMode=mixed
RuntimeDirectory=nginx

[Install]
WantedBy=default.target
