Luci on nginx compile

pr merged so you can build from master :wink:

@hnyman @jow there is a problem with openwrt 18.06

nginx and uwsgi are not updated in the repo but luci-nginx is present in luci repo... (talking about 18.06 branch... not master)

Should we push nginx and uwsgi to 18.06 or drop luci-nginx and luci-nginx-ssl from luci repo ?

I dropped in 18.06 for now

still nothing for the "someone" that requested the package :slight_smile:
i wonder if i'm the only one having problem with reverse proxy and relative path..

the pr is open we need to wait :frowning:

pr merged :wink: just wait buildbot now ahahah

well it was not as easy as you said, but something like that :slight_smile:
with "nginx-all-modules" installed i could not install luci-ssl-nginx

so i had to install lusi-ssl-nginx
THAN
remove (--force-depends) nginx-ssl
THAN
install again nginx-all-module

and it works :slight_smile:

ummm think you found a bug... will check it :wink:

dunno, but it's not gonna install anything:


root@RUTTO:/etc/nginx# opkg install luci-ssl-nginx
Installing luci-ssl-nginx (git-18.202.70567-a8a5b2f-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-ssl-nginx_git-18.202.70567-a8a5b2f-1_all.ipk
Installing nginx-ssl (1.15.1-3) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/nginx-ssl_1.15.1-3_arm_cortex-a15_neon-vfpv4.ipk
Collected errors:
 * check_data_file_clashes: Package nginx-ssl wants to install file /etc/init.d/nginx
        But that file is already provided by package  * nginx-all-module
 * check_data_file_clashes: Package nginx-ssl wants to install file /usr/sbin/nginx
        But that file is already provided by package  * nginx-all-module
 * opkg_install_cmd: Cannot install package luci-ssl-nginx.

i already know the problem... just to make sure it the one i think... can you try to install luci-nginx ?

sure!
here it is

root@RUTTO:/etc/init.d# opkg install luci-nginx
Installing luci-nginx (git-18.202.70567-a8a5b2f-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-nginx_git-18.202.70567-a8a5b2f-1_all.ipk
Installing nginx-mod-luci (1.15.1-3) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/nginx-mod-luci_1.15.1-3_arm_cortex-a15_neon-vfpv4.ipk
Collected errors:
 * check_data_file_clashes: Package nginx-mod-luci wants to install file /etc/nginx/luci_uwsgi.conf
        But that file is already provided by package  * nginx-mod-luci-ssl
 * check_data_file_clashes: Package nginx-mod-luci wants to install file /etc/uci-defaults/60_nginx-luci-support
        But that file is already provided by package  * nginx-mod-luci-ssl
 * opkg_install_cmd: Cannot install package luci-nginx.

Remove nginx-mod-luci-ssl first

ahahah sorry :slight_smile:

i don't know if you were expecting this, since i had some problems with removals..

root@RUTTO:/etc/init.d# opkg install luci-nginx Installing luci-nginx (git-18.202.70567-a8a5b2f-1) to root... Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci/luci-nginx_git-18.202.70567-a8a5b2f-1_all.ipk Installing nginx-mod-luci (1.15.1-3) to root... Downloading http://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages/nginx-mod-luci_1.15.1-3_arm_cortex-a15_neon-vfpv4.ipk Configuring nginx-mod-luci. Configuring luci-nginx.

my nginx is still serving https pages
luci is no more working..

Ok good you confirmed what i think is the problem...

is nginx-openssl working yet ?

??? What do you mean?

what i mean is can we finally use nginx-openssl or nginx-"other" for luci on openwrt instead of uhttpd

Yes, is working great thanks to @Ansuel

is this correct... ??

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/targets/ar71xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/ar71xx/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install luci-nginx
Unknown package 'luci-nginx'.
Collected errors:
 * opkg_install_cmd: Cannot install package luci-nginx.

The packages are located in luci´s package feed and i don´t see it in your output!

I assume you have build this image yourself without luci package feed!

I don´t know if it is sufficient to add the luci package feed to your /etc/opkg/distfeed.conf, but you could try...
If this will not work, build your image with included luci-nginx package or at least with the installed package feed in your build system...

To make the other package feeds available in your build system, do:
./scripts/feeds update -a && ./scripts/feeds install -a