From b1870f179d9b2045968a280125da4c8978a44fe2 Mon Sep 17 00:00:00 2001 From: Alejandro Duquec Date: Tue, 18 Aug 2020 01:26:59 -0500 Subject: [PATCH] update domain. --- .../sites/migrations/0003_set_site_domain_and_name.py | 4 ++-- abjhelp/templates/base.html | 3 ++- compose/production/traefik/traefik.yml | 6 +++--- config/settings/production.py | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/abjhelp/contrib/sites/migrations/0003_set_site_domain_and_name.py b/abjhelp/contrib/sites/migrations/0003_set_site_domain_and_name.py index 5745d9c..5e37e56 100644 --- a/abjhelp/contrib/sites/migrations/0003_set_site_domain_and_name.py +++ b/abjhelp/contrib/sites/migrations/0003_set_site_domain_and_name.py @@ -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", }, ) @@ -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"} ) diff --git a/abjhelp/templates/base.html b/abjhelp/templates/base.html index 6da4660..893c3a8 100644 --- a/abjhelp/templates/base.html +++ b/abjhelp/templates/base.html @@ -53,7 +53,8 @@

Código fuente libre bajo licencia GPLv3

Desarrollado por: Alejandro Duque

-

Revisá el código acá

+

Revisá el código acá

+

2020

diff --git a/compose/production/traefik/traefik.yml b/compose/production/traefik/traefik.yml index edbbc48..7780fc1 100644 --- a/compose/production/traefik/traefik.yml +++ b/compose/production/traefik/traefik.yml @@ -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 @@ -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 @@ -48,7 +48,7 @@ http: certResolver: letsencrypt flower-secure-router: - rule: "Host(`example.com`)" + rule: "Host(`unconviteporabejorral.org`)" entryPoints: - flower service: flower diff --git a/config/settings/production.py b/config/settings/production.py index e3a1bbe..0b6e9cc 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -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 # ------------------------------------------------------------------------------ @@ -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 " + "DJANGO_DEFAULT_FROM_EMAIL", default="abjhelp " ) # https://docs.djangoproject.com/en/dev/ref/settings/#server-email SERVER_EMAIL = env("DJANGO_SERVER_EMAIL", default=DEFAULT_FROM_EMAIL)