From owner-freebsd-questions@freebsd.org Wed Apr 1 16:19:52 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C079E27812F for ; Wed, 1 Apr 2020 16:19:52 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mail.foucry.net (fournil.foucry.net [95.217.83.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48srxZ6pj2z4Xh9 for ; Wed, 1 Apr 2020 16:19:30 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mithril.localdomain (unknown [IPv6:2001:910:1086:1:7584:7bef:b2e7:9f65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.foucry.net (Postfix) with ESMTPSA id D0A03473CB for ; Wed, 1 Apr 2020 16:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foucry.net; s=dkim; t=1585757957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yRSjMAP/VkSD3+MhzxNXv1FCx6ozdFRLO5wg7VUUu7s=; b=wBIVlfPkYBQk4UijqqV33h3NsY15FYJHl5r2D9AicSE2p+u2oupk3K6kCvn+APujyLiNdy MH+lu2mNP3icFdD6ParEc76VPoB0/FP9aBwXGDFAB5o7CBQ2P+h+mgpxvw51Q+fBjud438 L45hKKfIprajKlvnJR+KIHW4wgA6DCQ= Received: from mithril.foucry.net (mithril.foucry.net [IPv6:::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mithril.localdomain (Postfix) with ESMTPS id 0A6A618107 for ; Wed, 1 Apr 2020 18:19:16 +0200 (CEST) Date: Wed, 1 Apr 2020 18:19:14 +0200 From: Jacques Foucry To: freebsd-questions@freebsd.org Subject: icingaweb2 and nginx are in jail Message-ID: <20200401161914.GA7923@mithril.foucry.net> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.10 X-Rspamd-Server: mail.foucry.net X-Spam-Score: -0.10 X-Rspamd-Queue-Id: 48srxZ6pj2z4Xh9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=foucry.net header.s=dkim header.b=wBIVlfPk; dmarc=temperror reason="query timed out" header.from=foucry.net (policy=temperror); spf=pass (mx1.freebsd.org: domain of jacques@foucry.net designates 95.217.83.231 as permitted sender) smtp.mailfrom=jacques@foucry.net X-Spamd-Result: default: False [-1.94 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[foucry.net:s=dkim]; NEURAL_HAM_MEDIUM(-0.98)[-0.975,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.962,0]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[foucry.net:+]; DMARC_DNSFAIL(0.00)[foucry.net : query timed out]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.50)[ipnet: 95.217.0.0/16(4.08), asn: 24940(-1.57), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:95.217.0.0/16, country:DE]; TAGGED_FROM(0.00)[freebsd]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2020 16:19:52 -0000 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