#!/bin/bash
mkdir /etc/shrpx
echo -e "\
frontend=0.0.0.0,$shrpx_port\n\
backend=127.0.0.1,8000\n\
private-key-file=/root/certs/server.key\n\
certificate-file=/root/certs/server.crt\n\
spdy-proxy=yes \n\
daemon=no\n\
workers=1\n" \
> /etc/shrpx/shrpx.conf

/usr/local/bin/shrpx
#!/bin/bash
mkdir /etc/shrpx
echo -e "\
frontend=0.0.0.0,$shrpx_port\n\
backend=127.0.0.1,8000\n\
private-key-file=/root/certs/server.key\n\
certificate-file=/root/certs/server.crt\n\
spdy-proxy=yes\n\
daemon=no\n\
workers=1\n" \
> /etc/shrpx/shrpx.conf

/usr/local/bin/shrpx
Delete spaces at the end of lines
Delete spaces at the end of lines

shrpx config file DO NOT accept space at line endings
