Wrong links in email


(Riccardo) #1

Hello,
I installed discourse on http://x.y.8.242:25654 ( http://discourse.yyy.xxx.it:25654 )

Then, in antoher machine x.y.8.100, I setup an ngnix proxy for https

server {
listen 443 ssl spdy;
server_name discourse . svtools . yyy . xxx . it;
keepalive_timeout 70;
gzip on;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http:// discourse . yyy . xxx . it:25654/;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}
}

When user receives a mail notification, the links in the email refer to the backend.

Examples
Visit Topic: phpinfo()
User: http://discourse.yyy.xxx.it/u/00918220

May I modify this behaviour?

Riccardo


(Jay Pfaffman) #2

Put the host name that you want to use in app.yml rather than the back end host name.