From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6FxTCBWq5GJwUAEAbAwnHQ (envelope-from ) for ; Sat, 30 Jul 2022 05:48:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ICpZBxWq5GJ/UwEAG6o9tA (envelope-from ) for ; Sat, 30 Jul 2022 05:48:37 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D7B25E17E for ; Sat, 30 Jul 2022 05:48:35 +0200 (CEST) Received: from localhost ([::1]:54710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHdSs-0000KD-Fp for larch@yhetil.org; Fri, 29 Jul 2022 23:48:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHdSL-0000Jo-Er for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 23:48:01 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:41696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHdSJ-0004nW-Do for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 23:48:01 -0400 Received: by mail-pl1-x631.google.com with SMTP id v18so6117550plo.8 for ; Fri, 29 Jul 2022 20:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=MHhWMycMhjx9Uxp+//j3URfFAuKrVvSLLFqps0wCHXU=; b=qeQs03S0GDqj5+yOCZU8yzJvB0Y+jzENzRcn2an8JEDzozk74BX4gsWJ0GJDFDtKIo hmTY1Qs6/VyKie1hx4rzgvNrcDsiIn+Q48Ct+A7022wCQaQvozwnOWlH34t9BwxQohYp leF13Wxu6WD5ZCONA1S4luyBOkQ9K/ERdJDkyRJIdvYDNreaf/rQkvSYajF9HntJdxkc 6MKwRZlYOWJvk+1AJgl3pileM7m+saoDvuqRA11oTPFd265HQ0cMMB1ivEb2CYLRLYor dk0WM5z6wWWsJBDUdt6lkJiicCuoqIYuCyvJm96ixvaY9xAFaiRUrSEbnheVatXb11IN rfmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=MHhWMycMhjx9Uxp+//j3URfFAuKrVvSLLFqps0wCHXU=; b=m0vjtE/iR1gUoXABhL3Y5f+X0lWjTFs0XzGGayjEs/8O8FpL1+XRrkcUq0brnixteG gBcAGXvEQ19vpmSh5uX8i85aO3BRklQRW0a62DHTe4WT41AJmbKlmmnDoTLB6hcMuu6S YFJMQokp9JTNAuhFuJ1zLeKwXVKTq+X0RTgu6TNlHwlWxF49XtlmPyxnd3zrf4N39enC LjZYHbMDu5pwDGMATZYs9VQ4n53z/JYKY6cCLcaYALOL9JPrsiGLWqVfT2SICvmOBSsD plo2TDZ0XpGcvWZWSozOdov+0xgLcVeH2SbRXvoI1VECg16IrSRRJ9oIVCYS0XhMICW0 Fj7A== X-Gm-Message-State: ACgBeo1rPlLINxoArVv8XFSLc6aIr/3vKvk2/XzqtgqOsE55kd50fsds q//QYYVbugfX7bqL6og65kRJDW0uxOas5Q== X-Google-Smtp-Source: AA6agR4CCtXLrgLgaTE0r/JBtj4s+t1bHNFn5UytdX+BfBJZz6hkGVVud0tDdmlyZ5pwRX/VuvECoQ== X-Received: by 2002:a17:903:41c1:b0:16d:59d9:2bae with SMTP id u1-20020a17090341c100b0016d59d92baemr6820457ple.49.1659152877693; Fri, 29 Jul 2022 20:47:57 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-842a-7361-87c7-2662.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:842a:7361:87c7:2662]) by smtp.gmail.com with ESMTPSA id d15-20020a634f0f000000b00415d873b7a2sm3235941pgb.11.2022.07.29.20.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 20:47:57 -0700 (PDT) References: <87pmj9c7l0.fsf@gmail.com> <87o7ya7gxc.fsf@localhost> <871qv61p0t.fsf@gmail.com> <87wncxztzb.fsf@gmail.com> User-agent: mu4e 1.8.6; emacs 29.0.50 From: Tim Cross To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Serving .org files for worg (was: Re: Library of babel help) Date: Sat, 30 Jul 2022 13:29:02 +1000 In-reply-to: Message-ID: <867d3v45xy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659152916; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MHhWMycMhjx9Uxp+//j3URfFAuKrVvSLLFqps0wCHXU=; b=YKYOj+L4v1RprJHjufA5SZXJoeUv1MNlrBUUpQEj+DXvh9GWbNskQqKmcVCuqkgd1WQnBe jNFkisS5DkujvO2nopDkvVQtSv6Ssz0ZZvV6FimTOKyMfRsd8IeXBwox9fT+otrNd8bNwE pPrUcuwPkOFKNTxz8LTTjIZjHPfsZfOsUAwERPghX0d6PEn8dJlyEN+Xg0mkiRh1G+5jrc 7aHvBhK6nOp4L7u5Vgm3gv2v3Den8JZNSY/aYU83J09XG5oJ/zEtuI/2JcHr1Mua9Thx0i eHxi/ZjF36S7zpc1pCZ0HJHWp0lhpWJ8Dz+G5PKJHXe/dsbGCuoKU84JRuTvvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659152916; a=rsa-sha256; cv=none; b=ukCOi5KVLsPX4Xv7SgScq7CJq/Sp1gz2N3H/ycoj7vie6U4gatuQEJkARgBmKJq4ec5+6/ z2gO65zXKa7Z8ykrLFp5jqmLVsOk5BR5e3uAvSoHk6R0GyfILjr6z7xa4GMqzV+hOEad6k 5l3RhUBeq35yC5vKq1ixhuJ0s176cspmkvx9grI4UR1lht0v3JaYbQpXGziwJtaTPsncbG +ONSbocUWq47pGlx0B21x8pGlRwdT8mLhhrzbpEFLwittmqyXBvBbcsfrr1yioZRAH//p0 IApmBI4aY9KDdY4OFdp8gfiOwFl3Fs0g3ObdrLB1xanWAbiv5VvwrJu9xsVhbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qeQs03S0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=qeQs03S0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D7B25E17E X-Spam-Score: -3.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: FMlTtBxmsudq Max Nikulin writes: > On 01/07/2022 04:48, Tim Cross wrote: >> 1. Just using the .org as the suffix of the url instead of the .html did >> not work for me using two different browser. However, it did work for >> ihor, so either I did something wrong or there is something in my setup >> which is preventing that from working. Need to investigate further. >> However, that is not my main issue. > > Tim, have you managed to achieve any progress with either nginx or with settings of your > browsers? > > I have tried some variants of desktop environments with almost default setting without > issues similar to yours. > > Org files are fetched to the Downloads folder without additional user actions (besides > Firefox-91). It is not always obvious at first glance. With default settings: > - Chromium displays a bar at the bottom of the window. > - Firefox-102 (Ubuntu and Gnome, Arch and KDE) opens transient popup window. In > Ububntu-22.04 firefox and chromium are installed as snap packages. > - Firefox-91 (Debian, Xfce) displays more traditional popup window to confirm download > (somehow it guesses that it is an org-mode file even for application/octet-stream > MIME-type). > > If I change MIME type then Chromium displays internally both text/plain and text/x-org, > Firefox asks for an external application for text/x-org while text/plain is displayed in > the browser tab. > > The following snippet should be added to nginx configuration to assign MIME type for .org > files: > > types { > # Chromium opens text/x-org in the browser tab, > # Firefox downloads files and offers to open in some other application. > # text/x-org org; > text/plain org; > } > > See http://nginx.org/en/docs/http/ngx_http_core_module.html#types > It is assumed that default mime.types is included somewhere. Yes, I do have it working in my local dev environment. I have also made some progress with improvements with both the nginx and worg layout, but it isn't ready for 'prime time' yet. My testing with different browsers did show variation across browsers and this is something I would like to avoid. I also have come to a similar conclusion to you and think it is about setting a mime handler for org files in nginx. Unfortunately, during this whole process, I had a major hardware failure and have had to re-build my whole system. One of the things I did have on my TODO list was to migrate from using Ubuntu to Fedora and while I was going to do that later, given that I had to restore from backups onto a new system, I decided to make the switch now. While immensely happy with Fedora and pleased to be free of some of the stuff I didn't like with current Ubuntu, it has been 20 years since I've run a RH based distro, so there has been some learning curve to deal with which has slowed down my progress with worg (especially getting up to speed with SELinux, dnf and flatpak). However, it is progressing and I hope to have something for everyone to look at sooner rather than later. I have now become a member of the SourceHut community and I think it should be possible to deploy a dev/uat version of the new worg site to their pages site. This should provide a relatively easy way for everyone who is interested to have a look at the changes I'm making. I'm also hoping this will also provide a workable 'dev' site for the main worg repository so that anyone with the correct permissions can make changes, deploy to the dev site to verify nothing is broken and then push it to the production site. My hope is this will make people more relaxed and confident in contributing while also ensuring a good user experience for worg users. I still have a bit of work to do getting to grips wiht the sh tools and understanding how they can help. There is definitely some good stuff here, but there are still some rough edges you have to work with and some different concepts/approaches I'm not yet familiar with. The good news is that I think all the necessary prerequisite stuff is now working well and I can focus on the specifics of worg and the various moving parts which make up orgmode.org!