freshrss-app/set_config.php

23 lines
548 B
PHP
Raw Permalink Normal View History

<?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;");
?>