mirror of
https://git.cloudron.io/cloudron/freshrss-app
synced 2025-09-04 22:35:40 +00:00
Using cli scripts & allowing config changes
This commit is contained in:
22
set_config.php
Normal file
22
set_config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$config = include("/app/data/config.php");
|
||||
|
||||
$config["default_user"] = "admin";
|
||||
$config["base_url"] = "https://".getenv('APP_DOMAIN')."/p";
|
||||
$config["db"] = array (
|
||||
"type" => "mysql",
|
||||
"host" => getenv('MYSQL_HOST'),
|
||||
"user" => getenv('MYSQL_USERNAME'),
|
||||
"password" => getenv('MYSQL_PASSWORD'),
|
||||
"base" => getenv('MYSQL_DATABASE'),
|
||||
"prefix" => "",
|
||||
"pdo_options" =>
|
||||
array (
|
||||
)
|
||||
);
|
||||
|
||||
$config_str = var_export($config, TRUE);
|
||||
file_put_contents("/app/data/config.php", "<?php return $config_str;");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user