Displayed host name config

  • key: app.hostname
  • default: "{app_host}:{app_port}"

Property definitions

popcorn $ AppConfig :: app_hostname
	# Displayed host name config
	#
	# * key: `app.hostname`
	# * default: `"{app_host}:{app_port}"`
	fun app_hostname: String do
		var opt = opt_hostname.value
		if opt != null then return opt
		var cfg = ini["app.hostname"]
		if cfg != null then return cfg
		var res = app_host
		if app_port != 80 then res = "{res}:{app_port}"
		return res
	end
lib/popcorn/pop_config.nit:137,2--149,4