PasswordPusher
PasswordPusher copied to clipboard
define a working subdirectory with RAILS_RELATIVE_URL_ROOT and config.ru modification ?
Hello, In some cases (portal integration) we need to make Password work directly in subfolder rather than changing the web server configuration.
I tested this with success (I don't see any working problem) :
- set environment variable ENV RAILS_RELATIVE_URL_ROOT=/pwpush (in Dockerfile)
- and by modifying config.ru :
require ::File.expand_path('../config/environment', FILE) map ENV['RAILS_RELATIVE_URL_ROOT'] || '/' do run PasswordPusher::Application end
Does this change look correct to you? Do you think it could be integrated into passwordpusher (with an environment variable) ?
Regards, Thibaut
LGTM! Thanks for your contribution! 🎉