make domain configurable via config.json

This commit is contained in:
Skip R. 2018-07-15 21:21:41 -07:00
parent e33f0fa558
commit a5a005a1e4
No known key found for this signature in database
GPG key ID: 1508C19D7436A26D
3 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1,3 @@
{
"domain": "https://elstatus.stayathomeserver.club"
}

View file

@ -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;

View file

@ -0,0 +1 @@
../config.json