Added a configurable site origin to the ConfigReader+Properties extension in the Website library target.
This commit is contained in:
@@ -50,4 +50,12 @@ extension String {
|
||||
/// The website server's name.
|
||||
public static let name = "SiteWebsite"
|
||||
}
|
||||
/// A namespace for the site string constants.
|
||||
public enum Site {
|
||||
/// The default public origin the site is served at (scheme and host, no trailing slash): empty, which leaves the HTTPS redirect off.
|
||||
///
|
||||
/// A deployment that trusts the forwarded-protocol header without also setting `site.origin` would otherwise redirect at a host the
|
||||
/// template guessed for it, and a `301` is cached for a long time.
|
||||
public static let origin = ""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user