server {
listen 9001;
server_name localhost;
root /www;
location /api/
{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://graylog:9001/api/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /config.js
{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://graylog:9001/config.js;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /assets/
{
alias /www/;
}
location /
{
try_files $uri $uri/ /index.html;
index index.html;
}
}
Note: NPM v5 changed completely the way it builds local modules, breaking the Graylog web interface build. Please use Yarn instead of NPM v5.
yarn install
yarn start
to build the project for development and start the development server. You can exclude any Graylog frontend plugins from the build by running disable_plugins=true npm start
insteadThe yarn start
(or disable_plugins=true yarn start
) command will run an Express web server which is configured to do a full page reload in your browser every time that you save a file. This ensures that you will always use the latest version of your code.
You can start the development server in any other host and port that you like:
--host=<hostname>
option to change the default host the development server uses. The default host is 127.0.0.1
--port=<port>
option to change the default port number the development server uses. The default value is 8080
. The server will pick a random port if the port you try to use is already in useE.g. yarn start --host=0.0.0.0 --port=8000
will start the development server in all available network interfaces using the port 8000.
There's an online version of the frontend documentation and component gallery at:
https://graylog2.github.io/frontend-documentation/
The online version is automatically deployed and reflects the current state of the master
branch in this repository.
You may also run the documentation locally to contribute to it or see a different version than the current master:
yarn install
yarn run docs:server
We mainly develop using IntelliJ or WebStorm. If you also decide to use them to work in Graylog, enable React JSX
as Javascript language version to support the JSX language extension. This setting was called JSX harmony
before, and it is available in one or the other form since IntelliJ 14 and WebStorm 9.
Update a single dependency
yarn upgrade <package>@<version>
package.json
and yarn.lock
filesUpdate many dependencies
yarn upgrade <package1> <package2>...
yarn upgrade --pattern <pattern>
yarn upgrade
if you really want to upgrade all packagespackage.json
and yarn.lock
files此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型