Compare commits
21 Commits
Author | SHA1 | Date |
---|---|---|
Robert Kaussow | 7c77c546af | |
Renovator Bot | 633ca0c22b | |
Renovator Bot | d57a471cdb | |
Renovator Bot | b34da44c55 | |
Renovator Bot | bafa3f26b9 | |
Renovator Bot | 1e8b43cf38 | |
Renovator Bot | 2daccd31cc | |
Renovator Bot | 69030d45d0 | |
Renovator Bot | 2101d158fe | |
Renovator Bot | f38214cebc | |
Renovator Bot | 171a862118 | |
Robert Kaussow | 3e12dd8145 | |
Robert Kaussow | ab2ed79a3a | |
Renovator Bot | 5aebe22bc9 | |
Renovator Bot | 25219a8eb7 | |
Renovator Bot | 193baa4b98 | |
Renovator Bot | ac74f737f3 | |
Renovator Bot | 681426c0ca | |
Renovator Bot | c47a82342c | |
Renovator Bot | c564361b50 | |
Renovator Bot | f5a68c7bfe |
|
@ -1,4 +1,4 @@
|
|||
FROM thegeeklab/nginx:latest@sha256:d9c09836fac557d67dddafe31fd7e7412f36413eaeddfc389d30bce95a2b9d3a
|
||||
FROM thegeeklab/nginx:latest@sha256:72ffd57b6b89013f6b4c6a8a97728120df1dfac0d66b2164e0aacba21ee87380
|
||||
|
||||
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
||||
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
||||
|
|
|
@ -8,15 +8,15 @@ return array(
|
|||
'title' => '{{ getenv "FRESHRSS_TITLE" "FreshRSS" }}',
|
||||
'meta_description' => '{{ getenv "FRESHRSS_META_DESCRIPTION" }}',
|
||||
'default_user' => '{{ getenv "FRESHRSS_DEFAULT_USER" "admin" }}',
|
||||
'allow_anonymous' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS" "false" }},
|
||||
'allow_anonymous_refresh' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS_REFRESH" "false" }},
|
||||
'allow_anonymous' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS" "false" | conv.ToBool }},
|
||||
'allow_anonymous_refresh' => {{ getenv "FRESHRSS_ALLOW_ANONYMOUS_REFRESH" "false" | conv.ToBool }},
|
||||
'auth_type' => '{{ getenv "FRESHRSS_AUTH_TYPE" "form" }}',
|
||||
'api_enabled' => {{ getenv "FRESHRSS_API_ENABLED" "false" }},
|
||||
'unsafe_autologin_enabled' => {{ getenv "FRESHRSS_UNSAFE_AUTOLOGIN_ENABLED" "false" }},
|
||||
'simplepie_syslog_enabled' => {{ getenv "FRESHRSS_SIMPLEPIE_SYSLOG_ENABLED" "true" }},
|
||||
'pubsubhubbub_enabled' => {{ getenv "FRESHRSS_PUBSUBHUBBUB_ENABLED" "false" }},
|
||||
'allow_robots' => {{ getenv "FRESHRSS_ALLOW_ROBOTS" "false" }},
|
||||
'allow_referrer' => {{ getenv "FRESHRSS_ALLOW_REFERRER" "false" }},
|
||||
'api_enabled' => {{ getenv "FRESHRSS_API_ENABLED" "false" | conv.ToBool }},
|
||||
'unsafe_autologin_enabled' => {{ getenv "FRESHRSS_UNSAFE_AUTOLOGIN_ENABLED" "false" | conv.ToBool }},
|
||||
'simplepie_syslog_enabled' => {{ getenv "FRESHRSS_SIMPLEPIE_SYSLOG_ENABLED" "true" | conv.ToBool }},
|
||||
'pubsubhubbub_enabled' => {{ getenv "FRESHRSS_PUBSUBHUBBUB_ENABLED" "false" | conv.ToBool }},
|
||||
'allow_robots' => {{ getenv "FRESHRSS_ALLOW_ROBOTS" "false" | conv.ToBool }},
|
||||
'allow_referrer' => {{ getenv "FRESHRSS_ALLOW_REFERRER" "false" | conv.ToBool }},
|
||||
|
||||
'limits' => array(
|
||||
'cookie_duration' => {{ getenv "FRESHRSS_LIMITS_COOKIE_DURATION" "2592000" }},
|
||||
|
|
|
@ -19,7 +19,7 @@ implicit_flush = Off
|
|||
unserialize_callback_func =
|
||||
serialize_precision = 17
|
||||
|
||||
open_basedir = "/var/www/app:/var/lib/php/tmp_upload:/var/lib/php/session:/var/lib/php/soap_cache"
|
||||
open_basedir = "/var/www/app:/var/lib/php/tmp_upload:/var/lib/php/session:/var/lib/php/soap_cache:/tmp"
|
||||
|
||||
disable_functions = system, exec, shell_exec, phpinfo, show_source, highlight_file, popen, proc_open, fopen_with_path, dbmopen, dbase_open, move_uploaded_file, chmod, filepro, filepro_rowcount, filepro_retrieve, posix_mkfifo
|
||||
disable_classes =
|
||||
|
|
|
@ -47,6 +47,7 @@ if [ $EXITCODE -eq 3 ]; then
|
|||
elif [ $EXITCODE -eq 0 ]; then
|
||||
log_info "FreshRSS user successfully created"
|
||||
./cli/list-users.php | xargs -n1 ./cli/actualize-user.php --user "${FRESHRSS_DEFAULT_USER:-admin}"
|
||||
./cli/access-permissions.sh
|
||||
else
|
||||
log_error "FreshRSS error during the creation of a user: ${ERROR}"
|
||||
exit $EXITCODE
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
(php -r "readfile('http://127.0.0.1:8080/i/');" | grep -q 'jsonVars') || exit 1
|
||||
# shellcheck disable=SC3040
|
||||
set -eo pipefail
|
||||
|
||||
if [ "$(gomplate -i '{{ getenv "FRESHRSS_API_ENABLED" "false" | conv.ToBool }}')" = "true" ]; then
|
||||
(php -r "readfile('http://127.0.0.1:8080/api/fever.php');" | grep -q 'api_version') || exit 1
|
||||
else
|
||||
(php -r "readfile('http://127.0.0.1:8080/i/');" | grep -q 'jsonVars') || exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Reference in New Issue