We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx Unit from the version 1.5 supports nodejs applications (http://unit.nginx.org/configuration/#go-node-js-applications)
To start, you need to write a script like
#!/usr/bin/env node const { createServer, IncomingMessage, ServerResponse, } = require('unit-http') require('http').ServerResponse = ServerResponse require('http').IncomingMessage = IncomingMessage const express = require('express') const app = express() app.get('/', (req, res) => { res.set('X-Unit-Type', 'Absolute') res.send('Hello, Unit!') }) createServer(app).listen()
and integrate with uvue server adapters https://universal-vue.github.io/docs/guide/server.html#adapters
...combined with this configuration...
{ "listeners": { "*:8080": { "application": "hello-unit" } }, "applications": { "hello-unit": { "type": "external", "working_directory": "/path/to/project", "executable": "app.js" } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Nginx Unit from the version 1.5 supports nodejs applications (http://unit.nginx.org/configuration/#go-node-js-applications)
To start, you need to write a script like
and integrate with uvue server adapters https://universal-vue.github.io/docs/guide/server.html#adapters
...combined with this configuration...
The text was updated successfully, but these errors were encountered: