jolly-london-20127
01/15/2022, 5:29 PMjolly-london-20127
01/15/2022, 5:29 PMbright-autumn-15761
01/15/2022, 5:32 PMbright-autumn-15761
01/15/2022, 5:33 PMbright-autumn-15761
01/15/2022, 5:34 PMbright-autumn-15761
01/15/2022, 5:34 PMbright-autumn-15761
01/15/2022, 5:35 PMjolly-london-20127
01/15/2022, 5:37 PMjolly-london-20127
01/15/2022, 5:37 PMbright-autumn-15761
01/15/2022, 5:57 PMbright-autumn-15761
01/15/2022, 5:57 PMhigh-magazine-39815
01/16/2022, 8:34 AMhigh-magazine-39815
01/16/2022, 8:34 AMhigh-magazine-39815
01/19/2022, 8:05 AM2022/01/18 23:53:20 [netclient] joining <my net name> at grpc.<my domain>:443
2022/01/18 23:53:21 [netclient] error installing: rpc error: code = Unavailable desc = connection closed before server preface received
2022/01/18 23:53:21 Failed to authenticate: rpc error: code = Unauthenticated desc = Something went wrong with Auto Login: rpc error: code = Unavailable desc = connection closed before server preface received
My nginx config:
grpc.domain.conf:
server {
root /var/www/html;
server_name grpc.<my domain>;
client_max_body_size 0;
underscores_in_headers on;
location / {
proxy_pass http://127.0.0.1:50051;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 90;
proxy_redirect http://127.0.0.1:50051 https://$host;
proxy_pass_request_headers on;
}
...the rest is Certbot, redirecting 80>443, fairly standard stuff. Half of the nginx config was my standard template, the rest was adapted from the example config.bored-island-21407
01/19/2022, 1:00 PMbored-island-21407
01/19/2022, 1:04 PMhigh-magazine-39815
01/19/2022, 5:20 PMhigh-magazine-39815
01/19/2022, 5:22 PMhigh-magazine-39815
01/19/2022, 6:17 PM[netclient] error installing: rpc error: code = Unavailable desc = connection closed before server preface received
I think it probably has to do with nginx reverse proxy stuff. Are there any other arguments I'm missing above @User ?high-magazine-39815
01/19/2022, 6:19 PMhigh-magazine-39815
01/19/2022, 6:20 PMbored-island-21407
01/19/2022, 6:21 PMserver {
listen 443 ssl; # managed by Certbot
server_name <server-name>;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
#proxy_pass http://10.0.0.4;
proxy_pass http://127.0.0.1:8090;
}
cool-summer-33659
01/20/2022, 11:57 AMjolly-london-20127
01/20/2022, 12:33 PMcool-summer-33659
01/20/2022, 1:56 PMjolly-london-20127
01/20/2022, 2:00 PMcool-summer-33659
01/20/2022, 4:27 PMhigh-magazine-39815
01/21/2022, 8:37 PMbored-island-21407
01/21/2022, 8:44 PM