SonarSoftwareInc / customer_portal

A prebuilt customer portal for Sonar.
https://sonar.software
25 stars 51 forks source link

added 302 redirect to SERVER_NAME #87

Closed theglossy1 closed 3 years ago

theglossy1 commented 3 years ago

Currently, if somebody navigates to the customer portal in some way (e.g., via its IP address) it will simply serve up content. This changes the behavior so that if they arrive there in a way besides the FQDN, it will redirect them to the FQDN of the portal.

Setting this behavior is preparation for updating our ability to turn the customer portal into a captive portal for delinquent customers using MikroTik dstnat for http and https.

SonarSoftware commented 3 years ago

Can we do this in the nginx config? I think that would be cleaner.

theglossy1 commented 3 years ago

I agree, and we probably can. I'll look at it this weekend.

theglossy1 commented 3 years ago

will update nginx config instead