Use x-forwarded-proto header if present to change url used for generated urls