Luci on nginx compile

Can you send me the nginx config? Think I should add more check to the UCI defaults

IMHO package should add file named 'luci-nginx.conf.example' or similar with instructions at beginning and 'server{ }' section. If user has already configured nginx he/she only could include this config in his/her config. If nginx is not configured at all (i.e. was installed with as dependency) then nginx should be modified as desired.

sorry for being so noob, but i need an help :slight_smile:
i have the hynman 7800 build, so luci on uhttpd working
to have luci on nginx, i have to:

  1. remove:
  • uhttpd
  • uhttpd-mod-ubus
  • luci
  • luci-ssl-openssl
  1. add:
  • nginx
  • nginx-mod-luci
  • nginx-mod-luci-ssl (do i also need luci-ssl-nginx? or luci-ssl-openssl-nginx? or both? or none?)
  • uwsgi-cgi-luci-support
  1. reboot
  2. it's magically working.

is this right?
thanks :slight_smile:

At this stage, it's only supported non ssl nginx (i'm waiting a pr for the support of nginx with ssl builtin)

So just remove 4 package and install nginx nginx-mod-luci ( nginx-mod-luci should install uwsgi-cgi-luci-support automatically)

and you are done...

BROKEN PARTS (autorefresh page of reboot... need other report...)

well yes, it's magically working :slight_smile:
thanks, now i need to play with the config file..

well i lost a couple of hours trying to make nginx serve https and then i realised the ssl problem is not only with LUCI lol..
Any news on this?
thanks

the problem is with nginx that is compiled without the flag... there is a pr to have variant of nginx with ssl support builtin... we need to wait them to be merged.

nginx is now available with ssl builtin....

so the way to install luci on nginx with ssl support is install

luci-nginx-ssl
that's all...

The reboot problem was fixed 2 days ago...

1 Like

Package ariang-nginx has a dependency on nginx without SSL

Works like magic. Thanks.

ehm..

root@RUTTO:/www/.well-known/acme-challenge# opkg install luci-nginx-ssl
Unknown package 'luci-nginx-ssl'.
Collected errors:
 * opkg_install_cmd: Cannot install package luci-nginx-ssl.

:frowning:

Did you fetched the package lists with opkg update before?

Sure.
I'm on "OpenWrt SNAPSHOT r7474"

can't understand this

i see in packages list a "nginx-mod-luci-ssl" is this the correct name?
i'm gonna try :slight_smile:

Ok i removed nginx and nginx-mod-luci and got nginx-ssl and nginx-mod-luci-ssl
hope this is right :slight_smile:
thanks

You package name wasn´t correct!
The package names are:

luci-nginx
luci-ssl-nginx
luci-ssl-openssl-nginx

So you have to install only luci-nginx, luci-ssl-nginx or luci-ssl-openssl-nginx and the other needed packages are installed automatically.

Openssl package has dropped there is just nginx and nginx-ssl

This output is directly from opkg and in the mips_24kc luci packages it is also listed as i wrote above.

It´s removed on next build cycle?

i fixed the uci-defaults script...

now it doesn't reset the nginx config every time...

it does search for return 301 and include luci_conf

luci nginx with ssl works as expected. I have only one wish namely to move luci from my.domain/ to my.domain/router/. I have no major experience with nginx - i tried to do a rewrite of the url but i keeps telling me it's unable to dispatch. can i get some help around this issue. by the way - nice work!!!

think you need to make some change to uwsgi