Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimal nginx config #54

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions contrib/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
upstream sshx_server {
server 127.0.0.1:8051;
}

server {
listen 80;

server_name sshx.example.com;

location / {
return 302 https://$server_name$request_uri;
}
}

server {
listen 443 ssl http2;

ssl_certificate /path/to/fullchain.pem;
ssl_certificate_key /path/to/privkey.pem;
ssl_trusted_certificate /path/to/chain.pem;

server_name sshx.example.com;

location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_pass http://sshx_server;
}

location /sshx.SshxService/Channel {
grpc_pass grpc://sshx_server;
}
}

# vim: ft=nginx
Loading