I have a server which serves some other systems via LXD, using Nginx as reverse proxy for accessing them on HTTP.
Now I want to give shell access to one of them to a friend. In fact, I want to be able to directly SSH into LXD machine, without connecting to main server via SSH first.
I used stream function of Nginx as following:
stream {
upstream ssh {
server 240.17.0.16:22;
}
server {
listen 22;
server_name bbb.flossir.org;
proxy_pass ssh;
}
}
But Nginx says that it cannot process server_name
in stream section:
nginx: [emerg] "server_name" directive is not allowed here in /etc/nginx/streams-enabled/bigbluebutton:7
What should I do?