Browse Source

Añado host provisional a allowed y csrf

Tino 3 months ago
parent
commit
8a9369caaf
4 changed files with 5 additions and 5 deletions
  1. 1 1
      K8S/.current_version
  2. 1 1
      K8S/.version
  3. 1 1
      K8S/Makefile
  4. 2 2
      src/reymota/settings.py

+ 1 - 1
K8S/.current_version

@@ -1 +1 @@
-alpine-1
+alpine-2

+ 1 - 1
K8S/.version

@@ -1 +1 @@
-alpine-2
+alpine-3

+ 1 - 1
K8S/Makefile

@@ -102,7 +102,7 @@ clean: ## Borra todo (excepto las claims)
 	-cat reg-secret.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl --kubeconfig=$(KUBECONFIG) delete -f -
 
 service: ## Crea el servicio con NodePort
-	-cat reymota-service.yaml| sed -e "s/<NS>/${NAMESPACE}/" | kubectl --kubeconfig=$(KUBECONFIG) create -f -
+	-cat reymota-service-np.yaml| sed -e "s/<NS>/${NAMESPACE}/" | kubectl --kubeconfig=$(KUBECONFIG) create -f -
 
 servicelb: ## Crea el servicio con LoadBalancer
 	-cat reymota-service-lb.yaml| sed -e "s/<NS>/${NAMESPACE}/" | kubectl --kubeconfig=$(KUBECONFIG) create -f -

+ 2 - 2
src/reymota/settings.py

@@ -35,9 +35,9 @@ SECRET_KEY = 'django-insecure-vu#zk4g8pj-qoov#8^i$&s8n_ipp2r3h+o$z1w(1%d=6+i@erm
 DEBUG = os.environ["DEBUG"] == 'True'
 OPENSHIFT = os.environ["OPENSHIFT"] == 'True'
 
-ALLOWED_HOSTS = [".ocp-cluster.reymota.lab", "reymota.es", ".reymota.lab",".vmcluster.lab"]
+ALLOWED_HOSTS = [".reymota.es", ".reymota.lab",".vmcluster.lab"]
 
-CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "https://reymota.es", "http://reymota.rancher.reymota.lab","http://*.vmcluster.lab"]
+CSRF_TRUSTED_ORIGINS = ["https://*.reymota.es", "http://*.vmcluster.lab"]
 
 # Application definition