mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Fixing Files link to nginx media file browser.
This commit is contained in:
parent
a17d2a416a
commit
eabe517b89
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,8 @@ export const DEFAULT_LIMIT = 20;
|
|||
export const NAME = process.env && process.env.REACT_APP_NAME ? process.env.REACT_APP_NAME : null;
|
||||
|
||||
// Other services on a WROLPi.
|
||||
const port = window.location.port ? `${window.location.port}` : '';
|
||||
export const FILES_MEDIA_URI = `https://${window.location.hostname}${port}/media/`;
|
||||
const port = window.location.port ? `${window.location.port.replace(/^/, '')}` : '';
|
||||
export const FILES_MEDIA_URI = `https://${window.location.hostname}:${port}/media/`;
|
||||
export const MAP_VIEWER_URI = `https://${window.location.hostname}:8084`;
|
||||
export const ZIM_VIEWER_URI = `https://${window.location.hostname}:8085`;
|
||||
export const HELP_VIEWER_URI = `https://${window.location.hostname}:8086`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue