slomkowski / nginx-config-formatter

nginx config file formatter/beautifier written in Python with no additional dependencies.
Apache License 2.0
380 stars 64 forks source link

invalid variable name with $ #4

Closed patsevanton closed 7 years ago

patsevanton commented 7 years ago
server {
    listen 80 default_server;
    server_name localhost;
    location / {
        proxy_set_header X-User-Authorization "Internal ${cookie_access_token}";
    }
}

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful

server {
    listen 80 default_server;
    server_name localhost;
    location / {
        proxy_set_header X-User-Authorization "Internal $ {
            cookie_access_token
        }
        ";
    }
}

nginx: [emerg] invalid variable name in /etc/nginx/nginx.conf:63 nginx: configuration file /etc/nginx/nginx.conf test failed

slomkowski commented 7 years ago

I fixed it, sorry for late patch.

patsevanton commented 7 years ago

Thanks. Dont Worry :)