Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

333
Visualizações
nginx - gunicorn - django allauth redirect to 127.0.0.1 issue, how can I solve this?

I want to deploy my django app with nginx-gunicorn.

so I set nginx and gunicorn conf like this.

/etc/nginx/conf.d/default.conf included by /etc/nginx/nginx.conf


server {
    listen 80;
    server_name my.domain.com; 
    charset utf-8;
    location /static/ {
        root /home/flood/dj-eruces-ango;
    }
    location / {
        proxy_pass http://127.0.0.1:8000;
        #include proxy_params;
        #proxy_pass http://unix:/etc/systemd/system/gunicorn.socket; 
        }

}
/etc/systemd/system/gunicorn.service

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=flood
Group=www-data
WorkingDirectory=/home/flood/dj-eruces-ango/
ExecStart=/home/flood/dj-eruces-ango/secure/bin/gunicorn \
        --workers 2 \
        --bind 0.0.0.0:8000 \
        config.wsgi:application

[Install]
WantedBy=multi-user.target

and I set my google social-auth api to 'my.domain.com' and 'my.domain.com/auth/google/login/callback/'

but when I try social auth, the error occurs below.

400 error: redirect_uri_mismatch http://127.0.0.1:8000/auth/google/login/callback/

I want to solve this. show localhost issue(not a my.domain.com) and redirect_uri_mismatch issue.

How can I try?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda