OPNsense Forum

English Forums => Development and Code Review => Topic started by: Morta on August 04, 2023, 05:15:06 PM

Title: Run GUI for development with own webserver
Post by: Morta on August 04, 2023, 05:15:06 PM

Hi
Is there a way to run the GUI only on a webserver?

I know the vagrant image for developing propse.

Thx 4 input
Modify message
Title: Re: Run GUI for development with own webserver
Post by: franco on August 05, 2023, 01:37:24 PM
https://github.com/opnsense/ui_devtools
Title: Re: Run GUI for development with own webserver
Post by: Morta on August 06, 2023, 08:07:43 PM
Thx!

The server runs now under 192.168.1.100:8000 but I have the problem that System -> Backup doesn't display me is this not in the core?

My config looks like this

// copy this template to config.local.php and adjust settings
return new PhalconConfig(array(
    'application' => array(
            /* Usually keep defaults as is */
            'cacheDir'       => __DIR__ . '/../cache/',
            'baseUri'        => '/opnsense_gui/',
    ),
    'globals' => array(
        /* Usually keep defaults as is */
        'config_path'    => __DIR__ . '/../conf/',
        'temp_path'      => __DIR__ . '/../temp/',
        'debug'          => false,
        'simulate_mode'  => true
    ),
    'environment' => array(
        /* packages to include in setup */
'packages'      => array(
     '/usr/share/webapps/opnsense/www/plugins/sysutils/nextcloud-backup'
        ),
        /* location of OPNsense core package */
        'coreDir'        => '/usr/share/webapps/opnsense/www/core',
    )
));
Title: Re: Run GUI for development with own webserver
Post by: Morta on August 06, 2023, 08:41:00 PM
(https://abload.de/img/20230806_20h38m29s_gryffhg.png)