adjustments to reverse proxy for api
This commit is contained in:
@@ -43,27 +43,23 @@ http {
|
|||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 50051 http2;
|
listen 80;
|
||||||
server_name api.flowy.live;
|
server_name api.flowy.live;
|
||||||
|
|
||||||
default_type application/grpc;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
grpc_pass grpc://192.168.50.105:50051;
|
proxy_pass http://192.168.50.103:8080;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl;
|
||||||
server_name api.flowy.live;
|
server_name api.flowy.live;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/flowy.live/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/flowy.live/privkey.pem;
|
||||||
|
|
||||||
default_type application/grpc;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
grpc_pass grpc://192.168.50.105:50051;
|
proxy_pass http://192.168.50.103:8080;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user