Puma configuration for relative base URL

Fixes #3793