Skip to content

GRPC and Reverse Proxy #674

Answered by teon
patsch9 asked this question in Q&A
Jul 11, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@patsch9 We are using GRPC reverse proxy on NGINX, for example here are my snipplet for oroxy but for Core GRPC is identical. What is important with NGINX (which doesn't support /path/s/in/url/for/grpc) - you need a dedicated port to do reverse proxy on the / path. And then in configs add the https://domain.com:444/ Iwith port).

server {
    listen 444 http2;

    server_name enrollment.domain.com;

    access_log /var/log/nginx/proxy-grpc.log;
    error_log /var/log/nginx/proxy-grpc.e.log;

    ssl on;
    ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;

    client_max_body_size 200m;

    location / {
…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@teon
Comment options

teon Jul 11, 2024
Maintainer

@patsch9
Comment options

Answer selected by patsch9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants