# sugarizer_port is set to 8089 in /opt/iiab/iiab/vars/default_vars.yml
# If you need to change this, edit /etc/iiab/local_vars.yml prior to installing

location /sugarizer {
    proxy_set_header Host            $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Scheme        $scheme;
    proxy_set_header X-Script-Name   /sugarizer;
    proxy_pass http://127.0.0.1:{{ sugarizer_port }};
}
