mirror of
https://github.com/moebooru/moebooru
synced 2025-08-30 13:37:48 +00:00
Add some defaults
This commit is contained in:
@@ -278,6 +278,9 @@ CONFIG["email_from"] ||= CONFIG["admin_contact"]
|
|||||||
# Set default locale.
|
# Set default locale.
|
||||||
CONFIG["default_locale"] ||= "en"
|
CONFIG["default_locale"] ||= "en"
|
||||||
|
|
||||||
|
CONFIG["server_host"] ||= "localhost"
|
||||||
|
CONFIG["app_name"] ||= "DAN_SITENAME"
|
||||||
|
|
||||||
# Set default url_base if not set in local config.
|
# Set default url_base if not set in local config.
|
||||||
CONFIG["url_base"] ||= "http://#{CONFIG["server_host"] || "localhost"}"
|
CONFIG["url_base"] ||= "http://#{CONFIG["server_host"] || "localhost"}"
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# You MUST configure these settings for your own server!
|
# You MUST configure these settings for your own server!
|
||||||
CONFIG["app_name"] = "DAN_SITENAME"
|
CONFIG["app_name"] = "DAN_SITENAME"
|
||||||
CONFIG["server_host"] = "DAN_HOSTNAME"
|
CONFIG["server_host"] = "localhost"
|
||||||
CONFIG["admin_contact"] = "webmaster@" + CONFIG["server_host"]
|
CONFIG["admin_contact"] = "webmaster@" + CONFIG["server_host"]
|
||||||
|
|
||||||
# Generate with `bundle exec rake secret`
|
# Generate with `bundle exec rake secret`
|
||||||
|
Reference in New Issue
Block a user