Skip to content

Commit

Permalink
Bugfix/change password set reset url (#285)
Browse files Browse the repository at this point in the history
* Добавлен путь users.

* Изменен путь для шаблона email.
  • Loading branch information
MikeWazowskyi authored Sep 5, 2023
1 parent 88b2993 commit 7eccad1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions infra/dev/nginx.stage.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

location /users/ {
proxy_pass http://spread-wings-bot:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

error_page 500 502 503 504 /50x.html;
Expand Down
7 changes: 7 additions & 0 deletions infra/prod/nginx.prod.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}

location /users/ {
proxy_pass http://spread-wings-bot:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

error_page 500 502 503 504 /50x.html;

Expand Down
2 changes: 1 addition & 1 deletion src/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
EMAIL_BACKEND = env.str(
"EMAIL_BACKEND", default="django.core.mail.backends.console.EmailBackend"
)
EMAIL_TEMPLATE_NAME = "email.html"
EMAIL_TEMPLATE_NAME = "emailing/email.html"
EMAIL_HOST = env.str("EMAIL_HOST")
try:
EMAIL_PORT = env.int("EMAIL_PORT")
Expand Down

0 comments on commit 7eccad1

Please sign in to comment.