diff --git a/etc/nginx/sites-available/ogcore.conf b/etc/nginx/sites-available/ogcore.conf index 031ae72..f9df21b 100644 --- a/etc/nginx/sites-available/ogcore.conf +++ b/etc/nginx/sites-available/ogcore.conf @@ -7,6 +7,16 @@ server { ssl_certificate /opt/opengnsys/ogcore/etc/nginx/certs/ogcore.uds-test.net.crt.pem; ssl_certificate_key /opt/opengnsys/ogcore/etc/nginx/certs/ogcore.uds-test.net.key.pem; + location ~ ^/pcclients/([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(/.*)?$ { + set $target_ip $1; + set $rest $2; + + proxy_pass http://$target_ip$rest; + proxy_set_header Host $target_ip; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location /opengnsys/rest/ous// { rewrite ^/opengnsys/rest/ous//([0-9]+)/images /opengnsys/rest/ous/$1/images; rewrite ^/opengnsys/rest/ous//([0-9]+)/labs /opengnsys/rest/ous/$1/labs; diff --git a/templates/browser/main.html.twig b/templates/browser/main.html.twig index 9b7dab1..0a96ca8 100644 --- a/templates/browser/main.html.twig +++ b/templates/browser/main.html.twig @@ -4,197 +4,565 @@ - Menú de Opciones + + Panel de Control - OpenGnsys + - - + -
- -
-

Particiones del sistema

- {% if partitions|length > 0 %} - {% for partition in partitions %} -
- Disco: {{ partition.diskNumber }} - Partición: {{ partition.partitionNumber }} - Tamaño: {{ (partition.size / 1024)|number_format(2) }} MB - Tipo: {{ partition.filesystem }} - SO: {{ partition.operativeSystem ? partition.operativeSystem.name : '-' }} - {% if partition.operativeSystem %} - Arrancar {{ partition.operativeSystem.name }} - {% endif %} + + +
+

Particiones del sistema

+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DiscoParticiónTamañoTipoSOAcciones
sda1512.00 MBext4Ubuntu 22.04 + + + Arrancar Ubuntu 22.04 + +
sda21024.00 MBntfsWindows 11 + + + Arrancar Windows 11 + +
sda3256.00 MBswap- + +
sdb12048.00 MBext4Debian 12 + + + Arrancar Debian 12 + +
sdb2512.00 MBfat32- + +
+
+ + + {# + {% if partitions|length > 0 %} +
+ + + + + + + + + + + + + {% for partition in partitions %} + + + + + + + + + {% endfor %} + +
DiscoParticiónTamañoTipoSOAcciones
{{ partition.diskNumber }}{{ partition.partitionNumber }}{{ (partition.size / 1024)|number_format(2) }} MB{{ partition.filesystem }}{{ partition.operativeSystem ? partition.operativeSystem.name : '-' }} + {% if partition.operativeSystem %} + + + Arrancar {{ partition.operativeSystem.name }} + + {% endif %} +
- {% endfor %} - {% else %} -

No hay particiones disponibles.

- {% endif %} -
-
+ {% else %} +

No hay particiones disponibles.

+ {% endif %} + #} + +