Coder Social home page Coder Social logo

Proxy support about sentry-telegram HOT 6 OPEN

butorov avatar butorov commented on August 25, 2024 4
Proxy support

from sentry-telegram.

Comments (6)

butorov avatar butorov commented on August 25, 2024 2

@AlwxSin @vyuldashev @notarseniy now you can try to solve your problem with the api_origin option.

from sentry-telegram.

vyuldashev avatar vyuldashev commented on August 25, 2024

Any ETA on this?

from sentry-telegram.

AlwxSin avatar AlwxSin commented on August 25, 2024

@vyuldashev please, look at getsentry/sentry#6784

from sentry-telegram.

vyuldashev avatar vyuldashev commented on August 25, 2024

@AlwxSin Well, its not finished

from sentry-telegram.

notarseniy avatar notarseniy commented on August 25, 2024

+1

from sentry-telegram.

ybolotnikov avatar ybolotnikov commented on August 25, 2024

Hi! We get to work telegram with next scenario:

  1. Setup nginx with self-signed certs in local network:
    server {
    listen 443 ssl;

     ssl_certificate     /etc/ssl/certs/fakeapi.crt;
     ssl_certificate_key /etc/ssl/certs/fakeapi.key;
    
     server_name api.telegram.ru;
    
     location / {
             proxy_pass http://ourhetznerserver.ip:443;
     }
    

}
2. Nginx on hetzner VM:
server {
listen 443;

    server_name api.telegram.org;

    location / {
            proxy_pass https://api.telegram.org;
    }

}

I think there is one nginx in hetzner enough, but with this we get an error with our another alert services:
curl: (35) Unknown SSL protocol error in connection
(updating rootCA.pem didn't help)

  1. Add line to Dockerfile:
    RUN apt-get update && apt-get install -y python-pip && pip install sentry-telegram && sed -i 's/verify_ssl=True/verify_ssl=False/g' /usr/local/lib/python2.7/site-packages/sentry/http.py

  2. Add record witn local nginx to hosts in docker-compose.yml:
    extra_hosts:

    • "api.telegram.org:192.168.110.35"
  3. Rebuild sentry:
    docker-compose build && docker-compose run --rm web upgrade && docker-compose up -d

Profit!

from sentry-telegram.

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.