pem-dir isn't usable in the frontend block
hardik8585 opened this issue · 5 comments
I am getting syntax error while using pem-dir in hitch.
Here is my hitch.conf file details.
hitch: Parsing error in line 22: syntax error: 'pem-dir = "/var/lib/hitch/conf.d/"'
log-filename="/var/log/hitch.log"
syslog = on
syslog-facility = "daemon"
frontend = {
host = "*"
port = "8443"
tls-protos = TLSv1.0,TLSv1.1,TLSv1.2
ciphers = "deleting time being. I have tested this and working fine with pem-file"
prefer-server-ciphers = on
pem-dir = "/var/lib/hitch/conf.d/"
}
backend = "[127.1.1.1]:6086"
workers = 32
daemon = on
user = "hitch"
group = "hitch"
alpn-protos = "h2, http/1.1"
write-proxy-v2 = on
#write-ip = on
Any help please
You can just put pem-dir outside the frontend block while @gquintard solves it, or you can go to the cfg_parser.y grammar and add it yourself to the frontend bulk.
I had a strange error while updating from 1.4.8, pem-dir wasn't usable anywhere. Solved it deleting the sources and cloning the repo again. I suspect that maybe something about lex&yacc files in gitignore and make
not correctly updating after a make distclean
and configure && make && make install
cycle. Make sure it's not your case.
Please note I've added this in my pull request, but its stuck on a failed test during build which I couldn't replicate and can no longer access.