Date: Wed, 1 Apr 2020 18:19:14 +0200 From: Jacques Foucry <jacques+freebsd@foucry.net> To: freebsd-questions@freebsd.org Subject: icingaweb2 and nginx are in jail Message-ID: <20200401161914.GA7923@mithril.foucry.net>
next in thread | raw e-mail | index | archive | help
Hello folks, I try since now 2 weeks to make working icingaweb2 in a jail with nginx as http server and php-fpm but it don't work. The log is pretty clear: `/usr/local/www/icingaweb2/public/css/icinga.min.css` which is true there is no .css in ちhis directory bur .less kind of css. icingaweb2 *SHOULD* create the correct ccs _on the fly_. I cannot figure whatśs going wrong. In `/usr/local/etc/icingweb2` I only have the setup.token file. The ngnix configuration was made with the icingacli utility: ``` server { listen 80 default_server; listen [::]:80; server_name icinga.example.com root /usr/local/www/icingaweb2/public; index index.php; charset utf-8; default_type application/octet-stream; access_log /var/log/nginx/icinga.access.log; error_log /var/log/nginx/icinga.error.log; location ~ ^/icingaweb2/index\.php(.*)$ { fastcgi_pass 127.0.1.29:9000; try_files $uri /index.php =404; #fastcgi_pass unix:/var/run/php-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/local/www/icingaweb2/public/index.php; fastcgi_param ICINGAWEB_CONFIGDIR /usr/local/etc/icingaweb2; fastcgi_param REMOTE_USER $remote_user; } location ~ ^/icingaweb2(.+)? { alias /usr/local/www/icingaweb2/public; index index.php; try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args; } } ``` Note: 127.0.20.1 is the loopback ip for this jail The SSL part is done by the host PHP-FPM run: www php-fpm 94221 6 tcp4 127.0.1.20:9000 *:* www php-fpm 94220 6 tcp4 127.0.1.20:9000 *:* root php-fpm 94219 8 tcp4 127.0.1.20:9000 *:* So, if someone could help me, give me some advice, it will be really appreciate. -- Jacques Foucry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200401161914.GA7923>