From owner-freebsd-questions@freebsd.org Sun Apr 5 09:39:27 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 A05BD2B1751 for ; Sun, 5 Apr 2020 09:39:27 +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 48w7sy5KqSz3HQC for ; Sun, 5 Apr 2020 09:39:18 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mithril.localdomain (dontpanic.foucry.net [80.67.176.134]) (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 B8EE4B877 for ; Sun, 5 Apr 2020 09:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foucry.net; s=dkim; t=1586079537; 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: in-reply-to:in-reply-to:references:references; bh=7wTLgUCQh5GQFcvOT+piiVFHZIr3cadHUGv48bgZkT4=; b=DoYHl1GkY77EI7s/vCLQa68KS/N7UTpjpiDXiPBzUDZjl1ZvVONuAyDXQ4y59miOWb/kGK SwTNfBbDclHjC9VY0OOfB2mYu7drwjjw7TOZy2krZvCMcAf2Kc+2JulnTC5UvobnQNo8LY vRDOq3qPN3381bieHAwSUh0UwOoIPdk= 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 3958818304 for ; Sun, 5 Apr 2020 11:38:56 +0200 (CEST) Date: Sun, 5 Apr 2020 11:38:55 +0200 From: Jacques Foucry To: freebsd-questions@freebsd.org Subject: Re: icingaweb2 and nginx are in jail Message-ID: <20200405093855.GA75638@mithril.foucry.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20200401161914.GA7923@mithril.foucry.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200401161914.GA7923@mithril.foucry.net> X-Spam-Status: No, score=-0.10 X-Rspamd-Server: mail.foucry.net X-Spam-Score: -0.10 X-Rspamd-Queue-Id: 48w7sy5KqSz3HQC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=foucry.net header.s=dkim header.b=DoYHl1Gk; dmarc=pass (policy=none) header.from=foucry.net; 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 [-2.50 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[foucry.net:s=dkim]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,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(-1.00)[-0.998,0]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[foucry.net:+]; DMARC_POLICY_ALLOW(-0.50)[foucry.net,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.49)[ipnet: 95.217.0.0/16(4.06), 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: Sun, 05 Apr 2020 09:39:28 -0000 Le mercredi 01 avr. 2020 à 18:19:14 (+0200), Jacques Foucry à écrit: > 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. Seems nobody can help me… That's life. > > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" ---end quoted text--- -- Jacques Foucry