miniflux: update to 2.0.42
authorMichal Vasilek <michal.vasilek@nic.cz>
Wed, 15 Feb 2023 17:59:04 +0000 (18:59 +0100)
committerTianling Shen <cnsztl@gmail.com>
Fri, 24 Feb 2023 11:51:04 +0000 (19:51 +0800)
add BASE_URL to the init script, this is useful when running in a
subpath and not directly on the root of a domain

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
utils/miniflux/Makefile
utils/miniflux/files/miniflux.conf
utils/miniflux/files/miniflux.init

index 10d78a3ab37779fee3207f673e6d20d4c7b06ff5..99a7f34ffb5b88fcbbf6387a8d4354dfe9b7e4f6 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=miniflux
-PKG_VERSION:=2.0.41
+PKG_VERSION:=2.0.42
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/miniflux/v2/tar.gz/${PKG_VERSION}?
-PKG_HASH:=01e150ebfba12c8b5ca7c1d9d5a5976d018081cafc11228d6f77a48ac3333e1b
+PKG_HASH:=f050b2bc9839dd485047b9d7820dbb669668fd13135aa8b49dc0ad304e509fd5
 
 PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
 PKG_LICENSE:=Apache-2.0
index ec448a24d0f4309d2c1518283b42699dafc2ce19..dc793c366ac4bd3c4d1092c26611d7e024b5803e 100644 (file)
@@ -6,6 +6,8 @@ config miniflux main
 
        option listen_address '127.0.0.1:5433'
 
+       option base_url ''
+
        # run migrations on each start, disabling this will make miniflux fail to
        # start on the next upgrade until migrations are ran manually
        option migrate 1
index 6c7186901c216b0402d2be90b6bd11c17fdc83fb..7ed7369030b865c67490d0537d3dad522a59e72b 100644 (file)
@@ -24,6 +24,8 @@ start_service() {
                procd_append_param env LISTEN_ADDR="$listen_address"
                config_get run_migrations main run_migrations
                [ "$run_migrations" = 1 ] && procd_append_param env RUN_MIGRATIONS=1
+               config_get base_url main base_url
+               [ -n "$base_url" ] && procd_append_param env BASE_URL="$base_url"
 
                config_get database_url database url
                if [ -z "$database_url" ]; then