diff --git a/cfg.production.toml b/cfg.production.toml index 5d561d8..7e004bd 100644 --- a/cfg.production.toml +++ b/cfg.production.toml @@ -18,6 +18,7 @@ ${HOMU_SSH_KEY} host = '0.0.0.0' port = 80 +base_url = "https://bors.rust-lang.org" canonical_url = "https://bors.rust-lang.org" remove_path_prefixes = ["homu"] diff --git a/cfg.sample.toml b/cfg.sample.toml index 564da0b..59d4581 100644 --- a/cfg.sample.toml +++ b/cfg.sample.toml @@ -51,6 +51,12 @@ port = 54856 # all open PRs. sync_on_start = true +# The base url used for links pointing to this homu instance. +# If base_url is not present, links will use canonical_url as a fallback. +# If neither base_url nor canonical_url are present, no links to this homu +# instance will be generated. +#base_url = "https://bors.example.com" + # The canonical URL of this homu instance. If a user reaches the instance # through a different path they will be redirected. If this is not present in # the configuration homu will still work, but no redirect will be performed. diff --git a/homu/html/queue.html b/homu/html/queue.html index 4047523..092c6ff 100644 --- a/homu/html/queue.html +++ b/homu/html/queue.html @@ -187,9 +187,14 @@