[fix] rename BASE
to ORIGIN
and fix config handling
#3423
Merged
BASE
to ORIGIN
and fix config handling
#3423