Skip to content

Commit

Permalink
update domain.
Browse files Browse the repository at this point in the history
  • Loading branch information
aleducode committed Aug 18, 2020
1 parent 2d466d8 commit b1870f1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def update_site_forward(apps, schema_editor):
Site.objects.update_or_create(
id=settings.SITE_ID,
defaults={
"domain": "example.com",
"domain": "unconviteporabejorral.org",
"name": "abjhelp",
},
)
Expand All @@ -23,7 +23,7 @@ def update_site_backward(apps, schema_editor):
"""Revert site domain and name to default."""
Site = apps.get_model("sites", "Site")
Site.objects.update_or_create(
id=settings.SITE_ID, defaults={"domain": "example.com", "name": "example.com"}
id=settings.SITE_ID, defaults={"domain": "unconviteporabejorral.org", "name": "unconviteporabejorral.org"}
)


Expand Down
3 changes: 2 additions & 1 deletion abjhelp/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
<i class="bx bxl-github text-primary display-5" style="font-size: xx-large;"></i>
<p class="mt-0 pt-0 mb-0">Código fuente libre bajo licencia <a href="https://opensource.org/licenses/GPL-3.0">GPLv3</a></p>
<p class="mt-0 pt-0 mb-0">Desarrollado por: <a href="https://github.com/aleducode">Alejandro Duque</a></p>
<p class="mt-0 pt-0 mb-0"> Revisá el código <a href="https://github.com/aleducode">acá</a></p>
<p class="mt-0 pt-0 mb-0"> Revisá el código <a href="https://github.com/aleducode/help-abejorral">acá</a></p>
<p>2020</p>

</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions compose/production/traefik/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ certificatesResolvers:
http:
routers:
web-router:
rule: "Host(`example.com`) || Host(`www.example.com`)"
rule: "Host(`unconviteporabejorral.org`) || Host(`www.unconviteporabejorral.org`)"

entryPoints:
- web
Expand All @@ -36,7 +36,7 @@ http:
service: django

web-secure-router:
rule: "Host(`example.com`) || Host(`www.example.com`)"
rule: "Host(`unconviteporabejorral.org`) || Host(`www.unconviteporabejorral.org`)"

entryPoints:
- web-secure
Expand All @@ -48,7 +48,7 @@ http:
certResolver: letsencrypt

flower-secure-router:
rule: "Host(`example.com`)"
rule: "Host(`unconviteporabejorral.org`)"
entryPoints:
- flower
service: flower
Expand Down
4 changes: 2 additions & 2 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env("DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["example.com"])
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["unconviteporabejorral.org"])

# DATABASES
# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -114,7 +114,7 @@
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#default-from-email
DEFAULT_FROM_EMAIL = env(
"DJANGO_DEFAULT_FROM_EMAIL", default="abjhelp <noreply@example.com>"
"DJANGO_DEFAULT_FROM_EMAIL", default="abjhelp <noreply@unconviteporabejorral.org>"
)
# https://docs.djangoproject.com/en/dev/ref/settings/#server-email
SERVER_EMAIL = env("DJANGO_SERVER_EMAIL", default=DEFAULT_FROM_EMAIL)
Expand Down

0 comments on commit b1870f1

Please sign in to comment.