2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 01:47:48 +00:00

Add some defaults

This commit is contained in:
nanaya 2020-12-19 19:03:13 +09:00
parent 095e659c4f
commit 5d1696ed94
2 changed files with 4 additions and 1 deletions

View File

@ -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"}"

View File

@ -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`