Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FileRun en Docker con SWAG

Featured Replies

This post was recognized by SpencerJ!

Nelo3D was awarded the badge 'Helpful' and 10 points.

Hola a todos!

Un compañero me ha pedido ayuda para desplegar FileRun (https://www.filerun.com/) en Docker, y me he animado a hacer esta mini guía.

Lo primero, es que FileRun necesita una base de datos, así que vamos a montar MariaDB en Docker.

 

1mariadb.jpg.e335e31c6cee4cf102b6b397a3a5f8c2.jpg

 

Usamos la etiqueta 10.1, recomendada por FileRun en la documentación. El resto de parámetros son autoexplicativos y complemtamente libres. Pero hay que recordarlos, para utilizarlos en el contenedor de FileRun.

 

Bien, ahora creamos el contenedor de FileRun.

 

En mi caso, quería tener dos usuarios, y quería que cada uno pudiera acceder a su carpeta por SMB. Entonces, no podía montar un share para los dos, y tuve que montar dos shares. Y en el contenedor de FileRun, mapeamos las dos carpetas. Pero las dos deben estar dentro de la carpeta user-files del contenedor.

 

2filerun.thumb.jpg.6559a8c6955c72e09b4445ea88ede098.jpg

 

Aquí vemos que la página de FileRun estará en el puerto 1055. Y vemos que usará la red redproxy, que es como se llama la red donde tengo SWAG, y todos los servicios "públicos".

Los usuarios y contraseñas de MYSQL, deben ser los que indicamos en el contenedor de MariaDB. Continuamos:

 

3filerun.thumb.jpg.32b23095e9b2b3bb1b86704c34627e4b.jpg

 

El puerto, nombre de la base de datos... Deben ser los que indicamos en el contenedor de MariaDB. Luego hay que indicar los datos de Apache. He creado un usuario, que tiene el ID 1002. Esto es así porque este usuario debe tener todos los permisos en los dos shares creados para los dos usuarios, para poder subir y modificar ficheros.

 

Yo además tengo cambiados los paths por defecto de la Papelera y de los Thumbnails que crea FilerRun, pero con esto ya podemos empezar.

 

Una vez se arranque FileRun, creará la BBDD él solo y toda la estructura necesaria. Si hay algún problema, podemos verlo en el log del contenedor.

 

Muy importante lo del proxy, porque para registrar FileRun es necesario un dominio.

 

Aquí está el conf de SWAG que utilizo para acceder a filerun.miserver.com, e incluye las líneas de GeoIP que habrá que quitar si no se utiliza:

 

# make sure that your dns has a cname set for filerun

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name filerun.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;



# GeoIP
    if ($allow_list = yes) { set $allowed_country yes; }
    if ($allowed_country = no) { return 444; }



    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /login;
                            
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app filerun;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }

}

 

Bueno, espero no haberme dejado nada, hace bastante tiempo que lo tengo en marcha y puede que se me haya pasado algo.

 

Espero que lo disfrutéis!!!

 

EDIT: Comentar que no hace falta hacer nada en MariaDB, FileRun cuando arranque verá que es una instalación nueva, y creará la base de datos él solo.

Edited by Nelo3D
Nota sobre la BBDD

Buen trabajo @Nelo3D, seguro que más de un interesado le dará uso. 

Gracias por tu aportación.

Saludos cordiales 😎

Muy buena aportación compañero. Lo voy a probar haber que resultado obtengo, ya te contaré.

Gracias.

@Nelo3D Muchisimas gracias! Todavia no me trabaja pero estoy en eso..

 

  • Author

Cualquier duda/problema indícalo, y si es necesario actualizo las instrucciones.

  • 4 weeks later...

Hola a todos,

 

Primero muchas gracias @Nelo3D por la guia. Yo fui la persona que originalmente le pidio ayuda con esto y ahora es que he podido meterle mano.

 

Ya tengo todo  hecho como indica el guia pero tengo un problema con el login. Trato de hacer el login pero no puedo entrar. He tratado de hacer un reset a el account original de superuser con las instrucciones de la pagina de filerun:

 

cd cron
cron> php reset_superuser_pass.php your-site.com newpass

y la respuesta es:

# cd cron
# php reset_superuser_pass.php 192.168.1.99 superuser
 
The password of user "superuser" has been now set to superuser

Pero el username y pw de superuser no me trabaja. Solo me sale un popup que dice: "signing in.."

Y despues nada.

 

 

El log de filerun:

+ id -u www-data
+ '[' '!' -e /var/www/html/index.php ']'
+ exec /usr/bin/supervisord -c /supervisord.conf
2021-10-22 21:51:51,596 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.5. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.5. Set the 'ServerName' directive globally to suppress this message
[Fri Oct 22 21:51:52.820287 2021] [mpm_prefork:notice] [pid 11] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Fri Oct 22 21:51:52.820311 2021] [core:notice] [pid 11] AH00094: Command line: 'apache2 -D FOREGROUND'
192.168.1.50 - - [22/Oct/2021:21:51:58 -0400] "GET / HTTP/1.1" 200 1131 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
192.168.1.50 - - [22/Oct/2021:21:51:58 -0400] "GET /css/ext.php?v=2021.06.27&theme=blue HTTP/1.1" 200 12959 "http://192.168.1.99:8118/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
192.168.1.50 - - [22/Oct/2021:21:51:58 -0400] "GET /?module=fileman&section=utils&sec=Login%20Page&lang=english&v=2021.06.27&page=translation.js HTTP/1.1" 200 379 "http://192.168.1.99:8118/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
192.168.1.50 - - [22/Oct/2021:21:51:59 -0400] "GET /css/roboto/normal.woff2 HTTP/1.1" 200 15632 "http://192.168.1.99:8118/css/ext.php?v=2021.06.27&theme=blue" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
172.18.0.7 - - [22/Oct/2021:22:11:53 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:22:11:53 -0400] "\x16\x03\x01" 400 0 "-" "-"
+ id -u www-data
+ id -u www-data
+ '[' '!' -e /var/www/html/index.php ']'
+ exec /usr/bin/supervisord -c /supervisord.conf
2021-10-22 22:38:38,616 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.5. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.5. Set the 'ServerName' directive globally to suppress this message
[Fri Oct 22 22:38:39.682682 2021] [mpm_prefork:notice] [pid 11] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Fri Oct 22 22:38:39.682704 2021] [core:notice] [pid 11] AH00094: Command line: 'apache2 -D FOREGROUND'
192.168.1.50 - - [22/Oct/2021:22:40:27 -0400] "GET / HTTP/1.1" 200 1131 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
192.168.1.50 - - [22/Oct/2021:22:40:27 -0400] "GET /css/ext.php?v=2021.06.27&theme=blue HTTP/1.1" 200 12959 "http://192.168.1.99:8118/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
192.168.1.50 - - [22/Oct/2021:22:40:27 -0400] "GET /?module=fileman&section=utils&sec=Login%20Page&lang=english&v=2021.06.27&page=translation.js HTTP/1.1" 200 379 "http://192.168.1.99:8118/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
192.168.1.50 - - [22/Oct/2021:22:40:28 -0400] "GET /css/roboto/bold.woff2 HTTP/1.1" 200 15724 "http://192.168.1.99:8118/css/ext.php?v=2021.06.27&theme=blue" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
192.168.1.50 - - [22/Oct/2021:22:40:28 -0400] "GET /css/roboto/medium.woff2 HTTP/1.1" 304 182 "http://192.168.1.99:8118/css/ext.php?v=2021.06.27&theme=blue" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0"
172.18.0.7 - - [22/Oct/2021:22:40:44 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:22:40:44 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:22:46:28 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:22:46:28 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:22:50:16 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:22:50:16 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:23:01:39 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:23:01:39 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:23:01:39 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:23:01:39 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:23:01:39 -0400] "\x16\x03\x01" 400 0 "-" "-"
172.18.0.7 - - [22/Oct/2021:23:01:39 -0400] "\x16\x03\x01" 400 0 "-" "-"

 

Gracias a todos!

Edited by Killabee44

  • Author

¿Has configurado el proxy?

Creo que está leyendo solicitudes no encriptadas como encriptadas.

El proxy por puerto 443 hay que configurarlo después de configurar FileRun para que escuche tráfico HTTPS.

Entra por IP en vez de por el proxy.

El error ocurre cuando trato de entrar por http://192.168.1.99:8118/ (la direccion interna de mi unraid y el port de filerun). Cuando trato de entrar por la direccion de web que tengo configurada no me abre la pagina de login. Pero ese es otro problema..

Edited by Killabee44

  • 1 month later...

Interesante. buen trabajo.    👏

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.