i would like to skip it if .test? or .development? so that means .production? or any other environment would have it active.
additionally i would like to http_auth if ENV["MISSION_CONTROL_JOBS_USER"] && ENV["MISSION_CONTROL_JOBS_PASSWORD"] is set, regardless of environment.
So either you set it via ENV and it's active, or you can set it via http_auth option while mounting.
I'm just exploring if that syntax make sense and the PR would get merged? Otherwise i don't need to spend time on that ;-)
// edit: i realized that options provided are actually for mount and won't be forwarded to the engine.
i'll just do ENV and config support
While we can inherit from our own BaseController to implement authentication, i wanted to provide an easy
http_auth
way.i thought about the following syntax:
i would like to skip it if
.test?
or.development?
so that means.production?
or any other environment would have it active. additionally i would like to http_auth ifENV["MISSION_CONTROL_JOBS_USER"]
&&ENV["MISSION_CONTROL_JOBS_PASSWORD"]
is set, regardless of environment.So either you set it via
ENV
and it's active, or you can set it viahttp_auth
option while mounting.I'm just exploring if that syntax make sense and the PR would get merged? Otherwise i don't need to spend time on that ;-)
// edit: i realized that options provided are actually for
mount
and won't be forwarded to the engine. i'll just doENV
andconfig
support