From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 17 17:20:33 2017 Received: (at submit) by debbugs.gnu.org; 17 Apr 2017 21:20:33 +0000 Received: from localhost ([127.0.0.1]:53005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0E4X-0001Ih-52 for submit@debbugs.gnu.org; Mon, 17 Apr 2017 17:20:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0E4V-0001IU-Mg for submit@debbugs.gnu.org; Mon, 17 Apr 2017 17:20:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0E4P-0001sb-Hh for submit@debbugs.gnu.org; Mon, 17 Apr 2017 17:20:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0E4P-0001sU-EQ for submit@debbugs.gnu.org; Mon, 17 Apr 2017 17:20:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0E4O-0002Hw-6M for guix-patches@gnu.org; Mon, 17 Apr 2017 17:20:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0E4K-0001qB-4U for guix-patches@gnu.org; Mon, 17 Apr 2017 17:20:24 -0400 Received: from dau94-h03-89-91-205-84.dsl.sta.abo.bbox.fr ([89.91.205.84]:47792 helo=skaro.lepiller.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0E4J-0001pH-Ne for guix-patches@gnu.org; Mon, 17 Apr 2017 17:20:20 -0400 Received: from localhost (localhost [127.0.0.1]) by skaro.lepiller.eu (Postfix) with ESMTP id 784287FF98 for ; Mon, 17 Apr 2017 23:20:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lepiller.eu; s=default; t=1492464015; bh=FySmplgxIWERnC5LOQGqerXOj9hk/9HwOE+v++QFazc=; h=Date:From:To:Subject:From; b=MNV+eSJf1VoXgeWSc2s5JaAU0Dyq7ON3Dcqrlq6SSOtafizx5vitFRVzAAd/TFrU6 BO+Wf+quObkd3+fXMsEy3pknT5xtB23jPUXFKZJ1g8mI0/E3atibo40fKcHArXhf0+ BvBNmzN4LeeuN3wSxDdrpFz1S0bV9VlfBc8vK5Ce7soggorX2JWZW8SvqP07hI3fr8 45Pa7XzVHW0OsYXTPVfe8lvYIISof7F8s9c6kvMy4ccW9yHT4gjy1CN4CivdtaCy1j u79sGxZGd0ggUV/QktpKZTOvkSw5njQfVS4uDATzMzokoqBJx3ghecvLhJUJj75r67 lzz03lEq5gkri4pCOZHXAfJselt1xgABjDcdMIBMj3MvWJHP+fgk3gWROvXwqGyQ60 HpDC2gqUxwu6406VgSzPVF3cgyaJ1pEtcr1sse8y/9iiDG2NT71/5GtaxAukXiEXMw qweDwbe2qHlJny18iH3M9ekqLl5hHle/GfEYXWTERdKbT4/RmQEnc0/nvgqdfJd4l4 0wkx8IqvRUTnVIieLBWm616Rh42q1/BQOr1yVInYbcImsDBqXt8yYUObkYiIjJTVrS tEfFJP7JhGmudYor2zmeDOiHtbArZVsne+NTDeVv32xk21o+Y7n+XvrsalCJmJvhDG 3EeoSStZoNrGOTDjtkYdykaY= X-Virus-Scanned: Debian amavisd-new at lepiller.eu Received: from skaro.lepiller.eu ([127.0.0.1]) by localhost (lepiller.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WYfrTQw9lx0U for ; Mon, 17 Apr 2017 23:20:11 +0200 (CEST) Received: from localhost (89-93-157-164.hfc.dyn.abo.bbox.fr [89.93.157.164]) by skaro.lepiller.eu (Postfix) with ESMTPSA id D40B77FAA6 for ; Mon, 17 Apr 2017 23:20:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lepiller.eu; s=default; t=1492464011; bh=FySmplgxIWERnC5LOQGqerXOj9hk/9HwOE+v++QFazc=; h=Date:From:To:Subject:From; b=jFbGnSZnFotsZN5DX6zwF6C0/eJJFsUF/BZS07uT6qHHDsk2fsDD+P/+6fW2+fJNN XjYWe3B4GwtNKAYWVz0W+g/8uRMqhGf1ZFkuuyMfaKxZY/FAVbauD0GxAzSiTFoixa xXcW+6PWWEoMyHlfiZFVKMl0f/AR+xGwqaYrxMG7l42s8YXw7EkK+7BgJMMBcxGNNB crcPeoVIMsKtqIuV3A+dJWAzzHFBHuBsMdFbgd78zWkbZ7rDslEa+0lh9G3jlYi3nZ ZepEWqGzGtbK6+fnU5xJb9+cJKJumwH/gldcgvHSsvLLsfx72yslbKlRY2tj6/af39 Ln5mBtd0Nl/ZGoq5uwlNtV7WpW7lvTu3XJQS8BHzAyUth5OEuEBwmSJQxASmKbj1/b RZElQcpCc7b0hqa0V9PXONat7bRPz4DMPpV7/hUTYv44HgoQzMThisUgqd9CWgmvdk OSAQvwGOweAEJy683iA8iMf6Dp7j2BD+fklknSn7atuUOdL2GPLW+CgNq9i+pVRRQH h5cMUUQtHF+LwrJq4a2Yhk+IPtg89x9x7FBQX/DOOJ9eongHFVMRFOyS8L5/W2vErk ttCDKHnHiww/yinLKNbPL3V+WkWVEJSPsDCBxiUlRI2WvGilhpfLsHmejzY/Cpv3qT mKEcLXHn2RYA5gRouqz33q1Q= Date: Mon, 17 Apr 2017 23:20:05 +0200 From: Julien Lepiller To: guix-patches@gnu.org Subject: services: add mime.types Message-ID: <20170417232005.017a8d5d@lepiller.eu> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/lboxxeWxD=KNsBcvPfnzbHu" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --MP_/lboxxeWxD=KNsBcvPfnzbHu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, this patch adds a directive in the nginx configuration to include nginx's mime.types file, which allows nginx to recognize the files. Before that, files were served as application/octet-stream, which was not recognized by the browser as a webpage. --MP_/lboxxeWxD=KNsBcvPfnzbHu Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-services-nginx-Use-mime.types.patch >From 28a9d348ede5a88553308479a210ec2facce9c81 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 17 Apr 2017 23:06:04 +0200 Subject: [PATCH] services: nginx: Use mime.types. * gnu/service/web.scm: Include mime.types in generated configuration. --- gnu/services/web.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 11408d7b0..b7b2f67f1 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -180,7 +180,7 @@ of index files." (nginx-upstream-configuration-servers upstream))) " }\n")) -(define (default-nginx-config log-directory run-directory server-list upstream-list) +(define (default-nginx-config nginx log-directory run-directory server-list upstream-list) (mixed-text-file "nginx.conf" "user nginx nginx;\n" "pid " run-directory "/pid;\n" @@ -192,6 +192,7 @@ of index files." " uwsgi_temp_path " run-directory "/uwsgi_temp;\n" " scgi_temp_path " run-directory "/scgi_temp;\n" " access_log " log-directory "/access.log;\n" + " include " nginx "/share/nginx/conf/mime.types;\n" "\n" (string-join (filter (lambda (section) (not (null? section))) @@ -235,7 +236,7 @@ of index files." ;; Check configuration file syntax. (system* (string-append #$nginx "/sbin/nginx") "-c" #$(or config-file - (default-nginx-config log-directory + (default-nginx-config nginx log-directory run-directory server-blocks upstream-blocks)) "-t"))))) @@ -250,7 +251,7 @@ of index files." (zero? (system* #$nginx-binary "-c" #$(or config-file - (default-nginx-config log-directory + (default-nginx-config nginx log-directory run-directory server-blocks upstream-blocks)) #$@args)))))) -- 2.12.2 --MP_/lboxxeWxD=KNsBcvPfnzbHu-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 18 04:38:37 2017 Received: (at 26547) by debbugs.gnu.org; 18 Apr 2017 08:38:37 +0000 Received: from localhost ([127.0.0.1]:53411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0Oej-0002tS-8W for submit@debbugs.gnu.org; Tue, 18 Apr 2017 04:38:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0Oeh-0002tG-HZ for 26547@debbugs.gnu.org; Tue, 18 Apr 2017 04:38:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0OeX-0004X1-Fx for 26547@debbugs.gnu.org; Tue, 18 Apr 2017 04:38:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0OeX-0004Wt-C5; Tue, 18 Apr 2017 04:38:25 -0400 Received: from [193.50.110.90] (port=46606 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d0OeW-0006tb-Px; Tue, 18 Apr 2017 04:38:25 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Julien Lepiller Subject: Re: bug#26547: services: add mime.types References: <20170417232005.017a8d5d@lepiller.eu> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Germinal an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Tue, 18 Apr 2017 10:38:22 +0200 In-Reply-To: <20170417232005.017a8d5d@lepiller.eu> (Julien Lepiller's message of "Mon, 17 Apr 2017 23:20:05 +0200") Message-ID: <87pogartz5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26547 Cc: 26547@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Julien, Julien Lepiller skribis: > From 28a9d348ede5a88553308479a210ec2facce9c81 Mon Sep 17 00:00:00 2001 > From: Julien Lepiller > Date: Mon, 17 Apr 2017 23:06:04 +0200 > Subject: [PATCH] services: nginx: Use mime.types. > > * gnu/service/web.scm: Include mime.types in generated configuration. More like: * gnu/services/web.scm (default-nginx-config): Add 'nginx' parameter and honor it. Adjust callers. Otherwise LGTM, thanks! (FWIW, I previously worked around it in an NGINX configured via a plain text file by adding mime.types to /etc, like this: .) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 20 04:34:06 2017 Received: (at 26547-done) by debbugs.gnu.org; 20 Apr 2017 08:34:06 +0000 Received: from localhost ([127.0.0.1]:57890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d17XS-0001ip-2H for submit@debbugs.gnu.org; Thu, 20 Apr 2017 04:34:06 -0400 Received: from dau94-h03-89-91-205-84.dsl.sta.abo.bbox.fr ([89.91.205.84]:49658 helo=skaro.lepiller.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d17XP-0001hr-L2 for 26547-done@debbugs.gnu.org; Thu, 20 Apr 2017 04:34:03 -0400 Received: from localhost (localhost [127.0.0.1]) by skaro.lepiller.eu (Postfix) with ESMTP id AEEE980BB7 for <26547-done@debbugs.gnu.org>; Thu, 20 Apr 2017 10:33:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lepiller.eu; s=default; t=1492677237; bh=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN/XKdLCPjaYaY=; h=Date:From:To:Subject:From; b=EYvKY3ra0BAW6sSA3v0cOxmn5rgrXT/Ou8DqDoJKTdiOYpF9kPxiuIDHRxuF/znPp AAbhcr0EwAo8gxgPIYXf6zb/knor+wLhx1ngGI3YsofL591AfsUIcQOwREJBtyCZac eveAI8gj0gZa7xSh2wxCRdifIwrCZMAc0teQi7+GBKVHDvNBo/ciMoLrCiSeYPNYqi bApzyngWEZz3jJO0OeGAiJ/et6ULjhG3ef7pbit+BBb4hQjWmzFPTi9mfHC/ScV1VT 667P5ErU3rvONsmkeLqqWedvJ4RzS2VR2nA5DvJo0oWzfIgDgfhP3tPrDkxgFPYp75 0A0pgVwfxpgn8gmK3139/gyEA22L17kZZL6yCvVVbca/D0dbI+SxPeiV/sQI4crznV ZnkbzOPHBgDvKt4iXdG25KxQnKpepcfojfOoWZ+/+EPrjf7mTmfS4BMFTlAogLrXHI 062f1jSHij0qVi1FNxj+d1gauhcDndh1M4CrLDRygALUw9+O7k38Kwk+jHVsC92P7f PUAM1jcUJU3qN7tuo73/RNnN4Je4KMdTQ1p6gtXVYRWyj4f6WdFSAMXDFLeabm0bEU g+lK6PGsS5T7AxthXWWpbucDsqEG01oB9JdwfC+PMvqbqxOHRu5tzau8v/WD11M2NK 3Hgrb+0MKqs6VnrI7Rr1PZIM= X-Virus-Scanned: Debian amavisd-new at lepiller.eu Received: from skaro.lepiller.eu ([127.0.0.1]) by localhost (lepiller.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uopJZEqhhN7c for <26547-done@debbugs.gnu.org>; Thu, 20 Apr 2017 10:33:56 +0200 (CEST) Received: from webmail.lepiller.eu (localhost [127.0.0.1]) by skaro.lepiller.eu (Postfix) with ESMTPA id 8B57A80B1E for <26547-done@debbugs.gnu.org>; Thu, 20 Apr 2017 10:33:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lepiller.eu; s=default; t=1492677235; bh=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN/XKdLCPjaYaY=; h=Date:From:To:Subject:From; b=OLgo+N81EinWKnDjMt3zbJLiL9JEr1m35Y0m0sVstWsm1kNCKPD/UKJYkOsmSSHpT Y1jhg3npQuBEwtCbr2SHTVkSBiiO4EZ1URVAuTI/QRp/MUIJVXE7eD2XZMjTn4HXoZ /jO85txfTxdc7kFLShp2LldbNRM6FjmLoWIGZ+XQBFKrJDWdRMcg8NOq40YsKq/q3b gB1JfBS6zIDJqcy3A4piSxBs8QCLaCBQkeM2pW5NJStNfLvwqzsAjUZxW3qiinOh4h FPWEFpNcaEVdZ84R5JybjfRdjaa0vX94q8oAo4Vh4Qyp3B/r8lLm+iLXJVDVUM92Y7 Grnmn9sNAfVrh/8QaxYHogz3RryZkD9tUI5QS4bz+ujJEzvEXhBlOYKWEC/rdOGU2P WZMROie0rECE7rJPTDLFvlGpXXYIxYewdXKWoA5/x+BNnOAOsgHqXAQ1MJw+sFQBzL IMJZ78q1jIRCEEm3IaoxRSw/AcIus8qhelkugzLTpW6QYeGv0JRtTa4dkxLppptbXS XE0QYQjzu6D8WwZwLjlHoCSqkNgR0Bbpee1V+rde8w0GPJbbdnq9x7Vg+wk5Wj7k5M FZPQ8nrQFoAAD5evSlzo4sweZmVnQ0s8bB/lLVNCIJhgoM5/1wu7jpXgmhYk/luFcJ u2kyY9FSJOIiUlUqhWMNMHGg= MIME-Version: 1.0 Date: Thu, 20 Apr 2017 10:33:55 +0200 From: julien lepiller To: 26547-done@debbugs.gnu.org Subject: Message-ID: X-Sender: julien@lepiller.eu User-Agent: Roundcube Webmail/1.2.4 X-Spam-Score: 4.7 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: [...] Content analysis details: (4.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 2.3 EMPTY_MESSAGE Message appears to have no textual parts and no Subject: text 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 26547-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 4.7 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: [...] Content analysis details: (4.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 2.3 EMPTY_MESSAGE Message appears to have no textual parts and no Subject: text 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid From unknown Mon Aug 18 11:19:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 May 2017 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator