Open
Description
Hello
I have a site where I want SSL only on these routes:
https://api.example.com
https://example.com/users/sign_in
https://example.com/users/sign_up
and rest URLs should run without SSL. I am not able to figure out a way to combine only_hosts and only together. Tried these:
config.middleware.use Rack::SslEnforcer,
only_hosts: %r{api.example.com},
only: %r{/users},
ignore: %r{/assets},
strict: true
also tried with mutiple statements together:
config.middleware.use Rack::SslEnforcer,
except_hosts: %r{api.example.com},
only: %r{/users},
ignore: %r{/assets},
strict: true
config.middleware.use Rack::SslEnforcer,
only_hosts: %r{api.example.com}
but no luck. any suggestion on how I can achieve it?
Thanks
Metadata
Metadata
Assignees
Labels
No labels