make domain configurable via config.json
This commit is contained in:
parent
e33f0fa558
commit
a5a005a1e4
3 changed files with 5 additions and 3 deletions
3
priv/frontend/config.json
Normal file
3
priv/frontend/config.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"domain": "https://elstatus.stayathomeserver.club"
|
||||||
|
}
|
|
@ -5,9 +5,7 @@ import Service from './Service.js'
|
||||||
import ServicePlaceholder from './ServicePlaceholder.js'
|
import ServicePlaceholder from './ServicePlaceholder.js'
|
||||||
import OP from '../ws/op.js'
|
import OP from '../ws/op.js'
|
||||||
import { log } from '../util.js'
|
import { log } from '../util.js'
|
||||||
|
import { domain as DOMAIN } from '../config.json'
|
||||||
const DOMAIN = 'https://elstatus.stayathomeserver.club'
|
|
||||||
// const ENDPOINT = 'http://localhost:8069/api/status'
|
|
||||||
|
|
||||||
export default class App extends Component {
|
export default class App extends Component {
|
||||||
websocket = null;
|
websocket = null;
|
||||||
|
|
1
priv/frontend/src/config.json
Symbolic link
1
priv/frontend/src/config.json
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../config.json
|
Loading…
Reference in a new issue