#Configuring Email Notification Link: Replacing 'localhost' with External URL and Custom Port

9 messages · Page 1 of 1 (latest)

echo tiger
#

Good morning, how are you?

I have a question regarding email notifications. How can I modify the link included in the notification email?

I'm currently dealing with an issue where my internet provider blocks port 80 on the public IP. To work around this, I perform NAT on my public IP and redirect traffic to port 7000. However, when I receive the email, the link appears as:

http://localhost/azevedohost.com.br
This presents two problems:

Using "localhost" means the link isn't accessible externally.
The link does not include the custom port (7000).
I would like the email notification to display the link as follows:

https://azevedohost.com.br:7000
Could you please advise on how to achieve this change?

wet egret
#

Correct your APP_URL in your .env file.

merry fernBOT
#

The env file can be found at /var/www/pterodactyl/.env. Files starting with a . in Linux are hidden so it may not show up in file browsers by default. You can open it directly with nano /var/www/pterodactyl/.env

wet egret
#

you're missing the protocol. That's why you get that localhost prefix.

#

You can also add the port on the end there

#

don't forget to restart pteroq afterwards

merry fernBOT
#

Easy!

systemctl restart pteroq
echo tiger
#

Good morning,

I made the change and it still sends the wrong link.

Would it be in this field to make the change?

echo tiger
#

Another thing, I tried running the command again: php artisan p:environment:setup
and when it reaches the Application URL part, it continues showing the old link. I needed to change DNS to another DNS, in this case azeevdohost.com.br