0

We are trying to enable https for our services but it is currently used by legacy systems that can't be changed.

My idea was to use a single port 8080 so that the user can either use http://my-app:8080 (for existing systems) or https://my-app:8080 (for new systems). It will just redirect from http to https and but still works if https is used.

There is an existing question about this but was not answered: Spring Boot Redirect HTTP to HTTPS on Same Port

So far all the examples I saw were using different ports for http and https. Is this how it should be? or Is it even possible to use a single port for both? If possible how?

aedan
  • 209
  • 4
  • 12

0 Answers0