Forum Discussion
sachinratnawat
Jul 25, 2024Copper Contributor
SFTP enabled Storage Account Behind Nginx Reverse Proxy
I am trying to put SFTP enabled storage Account behind nginx proxy. I tried with the below configuration in nginx.conf stream { upstream backend{ server <<storageAccount_privat...
sdtslmn
Jul 30, 2024MCT
The simplest solution is to change the port that SSH listens on.
Port 2222 # Or any other unused portAlternatively, you can change the port that Nginx listens on for SFTP traffic.
stream {
upstream backend {
server <<storageAccount_private_ip>>:22;
}
server {
listen 2223; # Or any other unused port
proxy_pass backend;
}
}