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