From b4a13f0231eda82ee84ff209ac2329cdad23c6fc Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Wed, 12 Mar 2025 12:21:49 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1ado=20host=20reymota.es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yamls/reymota-service.yaml | 13 +++++++++++++ src/reymota/settings.py | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Yamls/reymota-service.yaml diff --git a/Yamls/reymota-service.yaml b/Yamls/reymota-service.yaml new file mode 100644 index 0000000..13aa22d --- /dev/null +++ b/Yamls/reymota-service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: reymota + namespace: reymota +spec: + type: NodePort + ports: + - name: "8080" + port: 8080 + nodePort: 30341 + targetPort: 8080 + diff --git a/src/reymota/settings.py b/src/reymota/settings.py index 39d2a66..2d30132 100644 --- a/src/reymota/settings.py +++ b/src/reymota/settings.py @@ -30,7 +30,7 @@ SECRET_KEY = 'django-insecure-vu#zk4g8pj-qoov#8^i$&s8n_ipp2r3h+o$z1w(1%d=6+i@erm # DEBUG = True DEBUG = os.environ["DEBUG"] == 'True' -ALLOWED_HOSTS = [".ocp-cluster.reymota.lab"] +ALLOWED_HOSTS = [".ocp-cluster.reymota.lab, reymota.es"] # Application definition