Browse Source

Funcionando con dominio externo

politica
Celestino Rey 1 year ago
parent
commit
1fbb9422ed
5 changed files with 14 additions and 10 deletions
  1. +1
    -1
      JugarAlPadel/Dockerfile
  2. +3
    -3
      JugarAlPadel/K8S/Makefile
  3. +2
    -2
      JugarAlPadel/K8S/env-prod-configmap.yaml
  4. +7
    -3
      JugarAlPadel/gestion_reservas/gestion_reservas/settings.py
  5. +1
    -1
      JugarAlPadel/gestion_reservas/templates/_head.html

+ 1
- 1
JugarAlPadel/Dockerfile View File

@ -20,7 +20,7 @@ RUN apt-get update && \
RUN pip install --upgrade pip
RUN pip install flake8==6.0.0
COPY . /app/
RUN flake8 --ignore=E501,F401,E126 .
RUN flake8 --ignore=E501,F401,E126,W391 .
COPY ./requirements.txt .


+ 3
- 3
JugarAlPadel/K8S/Makefile View File

@ -1,8 +1,8 @@
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
#export REGISTRY=registry.cube.local
#export REGISTRY=localhost:5000
export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.04
export IMG_NGINX_VERSION = 2.1
export IMG_VERSION = 0.14
export IMG_NGINX_VERSION = 2.3
# limpia todo
all: imagen clean install


+ 2
- 2
JugarAlPadel/K8S/env-prod-configmap.yaml View File

@ -1,8 +1,8 @@
apiVersion: v1
data:
DEBUG: "False"
DJANGO_ALLOWED_HOSTS: "reymota.es k8s-server localhost 127.0.0.1 [::1]"
CSRF_TRUSTED_ORIGINS: "https://reymota.es"
DJANGO_ALLOWED_HOSTS: "jugaralpadel.ddns.net reymota.es k8s-server localhost 127.0.0.1 [::1]"
CSRF_TRUSTED_ORIGINS: "https://jugaralpadel.ddns.net"
SECRET_KEY: change_me
SQL_DATABASE: jugaralpadel
SQL_ENGINE: django.db.backends.postgresql


+ 7
- 3
JugarAlPadel/gestion_reservas/gestion_reservas/settings.py View File

@ -161,6 +161,10 @@ else:
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'devesaparkpadel@gmail.com'
EMAIL_HOST_PASSWORD = 'mzgvprepqhlkuxgy' # Es mejor usar una contraseña de aplicación de Google
DEFAULT_FROM_EMAIL = 'devesaparkpadel@gmail.com'
# EMAIL_HOST_USER = 'devesaparkpadel@gmail.com'
# EMAIL_HOST_PASSWORD = 'mzgvprepqhlkuxgy' # Es mejor usar una contraseña de aplicación de Google
# DEFAULT_FROM_EMAIL = 'devesaparkpadel@gmail.com'
EMAIL_HOST_USER = 'jugaralpadelentreamigos@gmail.com'
EMAIL_HOST_PASSWORD = 'tlaxyhxeacsaumzx' # Es mejor usar una contraseña de aplicación de Google
DEFAULT_FROM_EMAIL = 'jugaralpadelentreamigos@gmail.com'

+ 1
- 1
JugarAlPadel/gestion_reservas/templates/_head.html View File

@ -3,7 +3,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Aplicaciones en Reymota.es</title>
<title>Jugar al pádel entre amigos</title>
<!-- Meta -->
<meta charset="utf-8">


Loading…
Cancel
Save