Skip to content

Deployment options require {{ confirm_email_link }} configuration #60

@jcborras

Description

@jcborras

Apologies for asking here first should not be considered the proper place.

I've got a webapp deployed coupled with nginx, the later for handling https and serving static content. Nothing fancy the nginx conf boils down to:

server {
    listen 443 ssl ;
    server_name myapp.local; 

    location /static {
      root /home/www/myapp/static ;
    }

    location / {
      proxy_pass http://myapp.local:5000/ ;
    }
}

The problem is that every single account confirmation email redirects to:

  1. http:// and not the secure version
  2. the local service host
  3. the port number...
    I've tried fiddling with the SERVER_NAME Flask config var or even hardcoded parameters in Flask.run() method but someone Flask-User always manages to find the hostname and port where the app is running....

So the question is: what is the easiest way of modifying the confirm_mail_link variable in the confirm_email_link so that it points where I want to?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions