airoute not producing https links

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
jafo66
Posts: 28
Joined: 06 Mar 2024, 04:42

airoute not producing https links

Post by jafo66 » 29 Apr 2024, 17:58

In deploying my app into a docker container, I have it exposed on port 443 with a valid certificate. The site won't work because it seems to be responding with URLs as http://<server_name> instead of https://<server_name>. Meaning, I get HTML returned the browser is blocking the non-secured links which is basically everything.

I have done the following:
  • Changed the APP_URL to be https://<server_name> in the .env file
  • Ensured the host (docker) and deployed app instance (inside of Azure) is listening on 443
  • added the ASSET_URL to the .env file
Any ideas about how I could get the airoute to generate the proper links?

User avatar
aimeos
Administrator
Posts: 7932
Joined: 01 Jan 1970, 00:00

Re: airoute not producing https links

Post by aimeos » 30 Apr 2024, 07:00

airoute() uses the Laravel routing infrastructure. Usually, setting APP_URL to a https URL works. If not, check the Laravel documentation and ask in the Laravel forums for help.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply