Git Product home page Git Product logo

Comments (5)

sixcare avatar sixcare commented on May 25, 2024

Could you provide the nginx config?

from alerta.

sandrorotabulo avatar sandrorotabulo commented on May 25, 2024

user nginx nginx;
worker_processes auto;
worker_rlimit_nofile 1024;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;

daemon on;

events {
multi_accept off;
worker_connections 512;
}

http {
include /etc/nginx/mime.types;
include /etc/nginx/conf.d/*.conf;
}

from alerta.

sixcare avatar sixcare commented on May 25, 2024

Are there any files included in include /etc/nginx/conf.d/*.conf;?

There's no server-block in the provided config.

from alerta.

sandrorotabulo avatar sandrorotabulo commented on May 25, 2024

there 2 files on /etc/nginx/conf.d/*.conf;

alerta.conf:

server {
listen 8080;
index index.html index.htm;
server_name alerta;

location / {
    root /alerta/var/www/html;
    try_files $uri $uri/ /index.html;

    if ($request_method ~* "(GET)") { add_header "Access-Control-Allow-Origin"  *;}

}
location /api {
    include uwsgi_params;
    uwsgi_pass unix:/run/uwsgi/uwsgi.sock;

}

}

status.conf

server {
listen 9090;
access_log /var/log/nginx/access.log;
location /nginx_status {
stub_status on;
}
allow 127.0.0.1;
deny all;
}

from alerta.

sixcare avatar sixcare commented on May 25, 2024

Thanks. It doesn't seem to be an issue with Alerta or Alerta WebUI, but rather a simple misconfiguration.

I'll be closing this issue since it's not an bug.
Feel free to ask for support on our slack channel.

from alerta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.