SSH with Nginx in Docker Mode (OD-1374)
Vasiliy Kulikov opened 3 years ago

I'am using next docker containers stack: Nginx, OneDev, MariadB, Adminer. And try to clone repo with SSH protocol, but this is not work for me. I get warning: "fatal: '/test_project' does not appear to be a git repository".

I found in similar issue (issue onedev/server#1136), Nginx is not forwarding request from 22 port of Host to 6611 port of 1dev. Then i added rule in server block of Nginx:

server {
    listen   22;
    server_name   onedev.example.com;
    include   nginxconfig.io/security.conf;
    
    location / {
        proxy_pass   http://1dev:6611/;
    }
}

And set next settings in OneDev instance:

Server URL: http://localhost:6610
SSH Root URL: ssh://localhost:6611 

But it still doesn't work. What am i doing wrong?

issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1374
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover