Add support for X-Forwarded-Path to wmts.xml
This commit is contained in:
parent
1d60dd6afc
commit
4dc97d53b6
1 changed files with 2 additions and 1 deletions
|
@ -658,11 +658,12 @@ async function start(opts) {
|
|||
if (opts.publicUrl) {
|
||||
baseUrl = opts.publicUrl;
|
||||
} else {
|
||||
let xForwardedPath = req.get('X-Forwarded-Path') ? '/' + req.get('X-Forwarded-Path') : '';
|
||||
baseUrl = `${
|
||||
req.get('X-Forwarded-Protocol')
|
||||
? req.get('X-Forwarded-Protocol')
|
||||
: req.protocol
|
||||
}://${req.get('host')}/`;
|
||||
}://${req.get('host')}${xForwardedPath}/`;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue