mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
vhost start
This commit is contained in:
parent
6a71982677
commit
5095d83558
2 changed files with 23 additions and 11 deletions
8
main.js
Normal file
8
main.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
const express = require('express')
|
||||
const vhost = require('vhost')
|
||||
|
||||
express()
|
||||
.use(vhost('qmining.frylabs.net', require('./server.js').app))
|
||||
.use(vhost('frylabs.net', require('./server.js').app))
|
||||
// .use(vhost('sync.mysite.com', require('/path/to/sync').app))
|
||||
.listen(8080)
|
Loading…
Add table
Add a link
Reference in a new issue