Use config.domain in place of hardcoded value

This commit is contained in:
Omar Roth
2019-01-19 09:10:52 -06:00
parent 9580a21786
commit 20c4d213d9
4 changed files with 20 additions and 15 deletions

View File

@@ -15,7 +15,10 @@ class Config
https_only: Bool?,
hmac_key: String?,
full_refresh: Bool,
domain: String?,
domain: {
type: String?,
default: "invidio.us",
},
})
end

View File

@@ -205,8 +205,6 @@ def make_host_url(ssl, host)
scheme = "http://"
end
host ||= "invidio.us"
return "#{scheme}#{host}"
end