Skip to content

Commit e5e44f4

Browse files
Miniflux (#9091)
1 parent 6781963 commit e5e44f4

File tree

4 files changed

+142
-0
lines changed

4 files changed

+142
-0
lines changed

ct/headers/miniflux

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__ ____ _ ______
2+
/ |/ (_)___ (_) __/ /_ ___ __
3+
/ /|_/ / / __ \/ / /_/ / / / / |/_/
4+
/ / / / / / / / / __/ / /_/ /> <
5+
/_/ /_/_/_/ /_/_/_/ /_/\__,_/_/|_|
6+

ct/miniflux.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: omernaveedxyz
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://miniflux.app/
7+
8+
APP="Miniflux"
9+
var_tags="${var_tags:-media}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-2048}"
12+
var_disk="${var_disk:-8}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -f /etc/systemd/system/miniflux.service ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
31+
msg_info "Stopping Service"
32+
$STD miniflux -flush-sessions -config-file /etc/miniflux.conf
33+
systemctl stop miniflux
34+
msg_ok "Service Stopped"
35+
36+
fetch_and_deploy_gh_release "miniflux" "miniflux/v2" "binary" "latest"
37+
38+
msg_info "Updating Miniflux"
39+
$STD miniflux -migrate -config-file /etc/miniflux.conf
40+
msg_ok "Updated Miniflux"
41+
msg_info "Starting Service"
42+
$STD systemctl start miniflux
43+
msg_ok "Started Service"
44+
msg_ok "Updated successfully"
45+
exit
46+
}
47+
48+
start
49+
build_container
50+
description
51+
52+
msg_ok "Completed Successfully!\n"
53+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
54+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
55+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"

frontend/public/json/miniflux.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Miniflux",
3+
"slug": "miniflux",
4+
"categories": [
5+
13
6+
],
7+
"date_created": "2025-11-12",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"config_path": "/etc/miniflux.conf",
12+
"interface_port": 8080,
13+
"documentation": "https://miniflux.app/docs/index.html",
14+
"website": "https://miniflux.app/",
15+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/miniflux-light.webp",
16+
"description": "Miniflux is a minimalist and opinionated feed reader.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/miniflux.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 2048,
24+
"hdd": 8,
25+
"os": "Debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": "admin",
32+
"password": "randomly generated during installation process"
33+
},
34+
"notes": [
35+
{
36+
"text": "Admin password available as `ADMIN_PASSWORD` in `~/miniflux.creds`",
37+
"type": "info"
38+
}
39+
]
40+
}

install/miniflux-install.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: omernaveedxyz
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://miniflux.app/
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
PG_VERSION=17 setup_postgresql
17+
PG_DB_NAME="miniflux_db" PG_DB_USER="miniflux" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
18+
fetch_and_deploy_gh_release "miniflux" "miniflux/v2" "binary" "latest"
19+
20+
msg_info "Configuring Miniflux"
21+
ADMIN_NAME=admin
22+
ADMIN_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)"
23+
cat <<EOF >/etc/miniflux.conf
24+
# See https://miniflux.app/docs/configuration.html
25+
DATABASE_URL=user=$PG_DB_USER password=$PG_DB_PASS dbname=$PG_DB_NAME sslmode=disable
26+
CREATE_ADMIN=1
27+
ADMIN_USERNAME=$ADMIN_NAME
28+
ADMIN_PASSWORD=$ADMIN_PASS
29+
LISTEN_ADDR=0.0.0.0:8080
30+
EOF
31+
{
32+
echo "ADMIN_USERNAME: $ADMIN_NAME"
33+
echo "ADMIN_PASSWORD: $ADMIN_PASS"
34+
} >>~/miniflux.creds
35+
$STD miniflux -migrate -config-file /etc/miniflux.conf
36+
systemctl enable -q --now miniflux
37+
msg_ok "Configured Miniflux"
38+
39+
motd_ssh
40+
customize
41+
cleanup_lxc

0 commit comments

Comments
 (0)