Git Product home page Git Product logo

Comments (5)

aldy505 avatar aldy505 commented on June 9, 2024 1

Usually the problem is caused by your reverse proxy/load balancer in front of the nginx container (that forwards the port 9000). What are you using, and what's the configuration?

You might also want to try and disable that reverse proxy, and try to access Sentry directly. If the problem persist, then we can make sure that it's not caused by the reverse proxy.

from self-hosted.

prikeshsavla avatar prikeshsavla commented on June 9, 2024

Usually the problem is caused by your reverse proxy/load balancer in front of the nginx container (that forwards the port 9000). What are you using, and what's the configuration?

You might also want to try and disable that reverse proxy, and try to access Sentry directly. If the problem persist, then we can make sure that it's not caused by the reverse proxy.

I checked trying to access it locally it works. How do I find the difference that is causing this issue then.
I can share the LB nginx conf if that helps

upstream sentry {
        server SERVER_IP:9000; # Redirect traffic to Sentry server
    }

server {
        modsecurity on;
        modsecurity_rules_file /etc/nginx/modsec/sentry.conf;
        root /var/www/html;
        server_name sentry.example.com;
        client_max_body_size 200M;
        location / {
                proxy_pass https://sentry; # Forward Traffic to upstream servers
                proxy_ssl_certificate /etc/nginx/certs/server.crt; # Location to specify crt file
                proxy_ssl_certificate_key /etc/nginx/certs/server.key; # Location to specify key file
                proxy_ssl_trusted_certificate /etc/nginx/certs/ca.crt; # Location of CA for authentication
                proxy_set_header Host $http_host; # Host header is not changed
                proxy_set_header Upgrade $http_upgrade; # Host header Upgrade
                proxy_set_header X-Forwarded-Proto https; # Request scheme HTTPS
                proxy_set_header X-Forwarded-Ssl on; # Request SSL
                proxy_buffering off; # Turn off Buffering
        }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/sentry.example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/sentry.example.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
    access_log /var/log/nginx/sentry-access.log;
    error_log /var/log/nginx/sentry-error.log;
}



server {
    if ($host = sentry.example.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        server_name sentry.example.com ;

    listen 80;
    return 404; # managed by Certbot


}

from self-hosted.

hubertdeng123 avatar hubertdeng123 commented on June 9, 2024

What does your network tab look like? Nothing is jumping out at me from the config you posted above

from self-hosted.

prikeshsavla avatar prikeshsavla commented on June 9, 2024

from self-hosted.

aldy505 avatar aldy505 commented on June 9, 2024

Since this is resolved on your end, I'll close this issue for now. Feel free to create new issue or add new comments if the problem continue.

from self-hosted.

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.