Replies: 3 comments 1 reply
-
|
Ah, right, the Web installer might indeed not use this information. PR welcome to improve it. ...
volumes:
...
# Optional file providing custom global settings (used before a FreshRSS install)
- ./config.custom.php:/var/www/FreshRSS/data/config.custom.php
# Optional file providing custom user settings (used before a new user is created)
- ./config-user.custom.php:/var/www/FreshRSS/data/config-user.custom.php
environment:
...
# Optional auto-install parameters (the Web interface install is recommended instead):
# ⚠️ Parameters below are only used at the very first run (so far).
# So if changes are made (or in .env file), first delete the service and volumes.
# ℹ️ All the --db-* parameters can be omitted if using built-in SQLite database.
FRESHRSS_INSTALL: |-
--api-enabled
--base-url ${BASE_URL}
--db-base ${DB_BASE}
--db-host ${DB_HOST}
--db-password ${DB_PASSWORD}
--db-type pgsql
--db-user ${DB_USER}
--default-user admin
--language en
FRESHRSS_USER: |-
--api-password ${ADMIN_API_PASSWORD}
--email ${ADMIN_EMAIL}
--language en
--password ${ADMIN_PASSWORD}
--user admin |
Beta Was this translation helpful? Give feedback.
-
|
It looks like there are still problems with $config = [
'salt' => generateSalt(),
'db' => FreshRSS_Context::systemConf()->db,
];
$customConfigPath = DATA_PATH . '/config.custom.php';
if (file_exists($customConfigPath)) {
$customConfig = include $customConfigPath;
if (is_array($customConfig) && is_array_keys_string($customConfig)) {
$config = array_merge($customConfig, $config);
}
}...it looks as if database settings in $config = [
'salt' => generateSalt(),
];Then everything works as expected. Alternately, if we reverse the order of the argument in the call to |
Beta Was this translation helpful? Give feedback.
-
|
I've submitted #8033 to reverse the arguments of the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to preconfigure database connection information when running freshrss.
I'm populating
/var/www/FreshRSS/data/config.custom.phplike this before starting freshrss:$FRESHRSS_DB_PASSWORDcomes from the environment. Before the installer runs, thedatadirectory looks like this:And the generated
config.custom.phplooks like:When connecting to freshrss for the first time, the installer still defaults to "sqlite", and when selecting "PostgreSQL" as the database type, all the fields are empty. If I fill everything out in the installer, then
/var/www/FreshRSS/data/config.custom.phpis generated as expected:root@1b961886b0d0:/var/www/FreshRSS# ls -l data/config* -rw-rw-r--. 1 root www-data 258 Sep 29 01:24 data/config.custom.php -rw-r--r--. 1 www-data www-data 2067 Sep 29 01:25 data/config.php -rw-r--r--. 1 www-data www-data 412 Sep 29 01:24 data/config.php.bak.phpAm I doing something wrong, or have I misunderstood the purpose of config.custom.php?
Beta Was this translation helpful? Give feedback.
All reactions