Updates across the board to the caddy and other configs.
This commit is contained in:
parent
885a0ef93c
commit
0a3f8fca85
3 changed files with 6 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script>
|
||||
<script>
|
||||
// set-up a connection between the client and the server
|
||||
var socket = io.connect('http://ftb-infinity.snipanet.com:8001/');
|
||||
var socket = io.connect('http://ftb-infinity.snipanet.com/');
|
||||
|
||||
// let's assume that the client page, once rendered, knows what room it wants to join
|
||||
var room = "pool_stats";
|
||||
|
|
|
|||
|
|
@ -5,8 +5,11 @@
|
|||
proxy /api 127.0.0.1:8001 {
|
||||
without /api
|
||||
}
|
||||
proxy /socket.io 127.0.0.1:8001 {
|
||||
header_upstream Connection {>Connection}
|
||||
header_upstream Upgrade {>Upgrade}
|
||||
}
|
||||
header / {
|
||||
Access-Control-Allow-Origin *
|
||||
Access-Control-Allow-Methods "GET, POST, OPTIONS"
|
||||
Access-Control-Allow-Headers "Content-Type, x-access-token"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ if(global.config.solo.enable === true){
|
|||
pool_list.push('solo');
|
||||
}
|
||||
|
||||
app.use(cors());
|
||||
app.use(cors({origin: true}));
|
||||
app.use(bodyParser.urlencoded({extended: false}));
|
||||
app.use(bodyParser.json());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue