From c1d090d8420a942964b66f0172c24a340efe8a79 Mon Sep 17 00:00:00 2001
From: Celestino Rey
Date: Sun, 25 Dec 2022 13:33:28 +0100
Subject: [PATCH] =?UTF-8?q?Cambio=20la=20configuraci=C3=B3n=20del=20mountp?=
=?UTF-8?q?ath=20para=20que=20apunte=20tambi=C3=A9n=20a=20la=20configuraci?=
=?UTF-8?q?=C3=B3n.=20Creo=20las=20scripts=20php=20para=20subir=20un=20fic?=
=?UTF-8?q?hero?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Nginx/miweb-deployment.yaml | 3 ++-
Nginx/upload.php | 39 +++++++++++++++++++++++++++++++++++++
Nginx/uploader.php | 15 ++++++++++++++
3 files changed, 56 insertions(+), 1 deletion(-)
create mode 100644 Nginx/upload.php
create mode 100644 Nginx/uploader.php
diff --git a/Nginx/miweb-deployment.yaml b/Nginx/miweb-deployment.yaml
index 358bc8a4..3e979b8c 100644
--- a/Nginx/miweb-deployment.yaml
+++ b/Nginx/miweb-deployment.yaml
@@ -54,7 +54,8 @@ spec:
name: "nginx-http"
volumeMounts:
- name: nginx-www-folder
- mountPath: /config/www
+ #mountPath: /config/www
+ mountPath: /config
#mountPath: /usr/local/apache2/htdocs
volumes:
- name: nginx-www-folder
diff --git a/Nginx/upload.php b/Nginx/upload.php
new file mode 100644
index 00000000..1565cbbb
--- /dev/null
+++ b/Nginx/upload.php
@@ -0,0 +1,39 @@
+
+
+
+Fichero subido correctamente
';
+} else {
+ echo '
Ha habido algún error #: '.$_FILES['file']['error'];
+ echo '
El fichero es: '.$_FILES['file']['name'].' para guardar en '.$location;
+}
+
+?>
+
+
+
diff --git a/Nginx/uploader.php b/Nginx/uploader.php
new file mode 100644
index 00000000..6d37eee8
--- /dev/null
+++ b/Nginx/uploader.php
@@ -0,0 +1,15 @@
+
+
+
+ Subir fichero de música
+
+
+
+
+
+
+
+