我有 nginx conf 作为
location /static/ {
alias $HOME/code/python/vlists/vlists/static/;
# if asset versioning is used
if ($query_string) {
expires max;
}
}
我想从环境中传递 $HOME,所以我这样做
$ sudo -E nginx
nginx: [emerg] unknown "home" variable
我如何确保$HOME
正确替换nginx.conf
?