mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-30 00:22:15 +00:00
Switch port to 8181.
Won't conflict with k8s api server port.
This commit is contained in:
parent
9d6fe878e1
commit
30ebfd4bcc
@ -5,7 +5,7 @@ express_server:
|
|||||||
working_dir: /usr/src/app
|
working_dir: /usr/src/app
|
||||||
command: bash -c "npm install && node server.js"
|
command: bash -c "npm install && node server.js"
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8181:8181"
|
||||||
volumes:
|
volumes:
|
||||||
- ${PWD}:/usr/src/app
|
- ${PWD}:/usr/src/app
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@ var express = require('express'); // call express
|
|||||||
var app = express(); // define our app using express
|
var app = express(); // define our app using express
|
||||||
var child_process = require('child_process');
|
var child_process = require('child_process');
|
||||||
|
|
||||||
var port = process.env.PORT || 8080; // set our port
|
var port = process.env.PORT || 8181; // set our port
|
||||||
|
|
||||||
// ROUTES FOR OUR API
|
// ROUTES FOR OUR API
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
var router = express.Router(); // get an instance of the express Router
|
var router = express.Router(); // get an instance of the express Router
|
||||||
|
|
||||||
// test route to make sure everything is working (accessed at GET http://localhost:8080/api)
|
// test route to make sure everything is working (accessed at GET http://localhost:8181/api)
|
||||||
router.get('/', function(req, res) {
|
router.get('/', function(req, res) {
|
||||||
res.json({ message: 'API available'});
|
res.json({ message: 'API available'});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user